Create first Angular project
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.
- Click the “Windows Installer” button to download the Node.js installer for Windows.
- Once the installer is downloaded, double-click on it to run it.
- Click on next
4. Select npm pacakge manager and click on next.
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/ **
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!









