0% found this document useful (0 votes)
8 views

Node Js Installation Setup

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Node Js Installation Setup

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Install node.

js

Steps to install specific node version (Version 12.20.0) used in the project.

1. Download node.js Windows Installer(.msi) from


https://nodejs.org/download/release/v12.20.0/

2. Install node.js with default settings

3. npm package gets installed along with node.js

After installation, check installed version in Command Prompt.

node -v
npm -v

Install Angular CLI


1. To install specific version of Angular CLI (version 13.3.0) using below command -

npm install -g @angular/[email protected]

During installation, npm will prompt for below setting -

Would you like to share anonymous usage data with the Angular Team at Google under

Google’s Privacy Policy at https://policies.google.com/privacy? For more details and

how to change this setting, see https://angular.io/analytics. (y/N)

Choose “N”

Make sure angular CLI gets installed without any error messages. Successful installation,
check for version.

ng version
Install Visual Studio Code:
1. Download VS code for Windows 10
https://code.visualstudio.com/
Download system installer for Windows 64bit and run as administrator

Create new Angular Project


1. Create new folder in C:\

Open VS Code and open new Terminal (Command Prompt)

Access the folder created in VS Code

C:\>cd C:\LearnAngular

2. Create new angular project (TourOfHeroes) using command –

ng new TourOfHeroes

C:\LearnAngular>ng new TourOfHeroes

Choose “Yes” for

? Would you like to add Angular routing?

Press enter to select CSS stylesheet by default


New project gets created successfully.
Serve the application

To launch the application in local webserver, go to the path where we created new angular
project and give the below command:

C:\LearnAngular>cd TourOfHeroes

ng serve - - open

The --open flag opens a browser to http://localhost:4200

Now we can see our application running in the browser and all set to go!

You might also like