Sitemap
shubham mishra

shubham mishra

Hi there! I'm a full-stack developer with 6 years of experience in building robust, scalable, and maintainable web applications.

Create first Angular project

2 min readApr 12, 2023

First, you’ll need to install Node.js and NPM (Node Package Manager) if you haven’t already installed. You can download and install them from the official website:
https://nodejs.org/en/download/

Steps to setup node.js & npm on windows machine.

  1. Click the “Windows Installer” button to download the Node.js installer for Windows.
  2. Once the installer is downloaded, double-click on it to run it.
  3. Click on next
Press enter or click to view image in full size

4. Select npm pacakge manager and click on next.

Press enter or click to view image in full size

5. Finally click on install button.

6. After installation, open up the Command Prompt or PowerShell on your Windows machine.

7. To verify that Node.js is installed correctly, type the following command and press Enter.

node -v

This should print out the version number of Node.js that you just installed.

8. To verify that NPM is installed correctly, type the following command and press Enter.

npm -v

9. This should print out the version number of NPM that you just installed.

Get shubham mishra’s stories in your inbox

Join Medium for free to get updates from this writer.

Next step, install the Angular CLI (Command Line Interface) by running the following command:

npm install -g @angular/cli

  • -g stands to install angular/cli globally

Now, navigate to the directory where you want to create your Angular project using the cd command. For example:

cd C:\Users\YourUserName\Documents

Once you’re in the directory where you want to create your project, run the following command to create a new Angular project:

ng new first-angular

Replace first-angular with the name of your project.

Go to the your project folder

cd first-angular

Now run the application by command

ng serve

you will see now your application is running on http://localhost:4200/ **

Press enter or click to view image in full size
Press enter or click to view image in full size

In the next article, we will see the structure of the angular project.

https://medium.com/@mshubham2002/project-structure-of-angular-1b048bd66832

If you found this article helpful, please consider giving it a like and sharing it with your friends and colleagues to help spread the word!

--

--

shubham mishra
shubham mishra

Written by shubham mishra

Hi there! I'm a full-stack developer with 6 years of experience in building robust, scalable, and maintainable web applications.