Create new folder in your desired location.for instance i’ve created a folder with name Node in E drive
download Node.js from https://nodejs.org/en/download/
open command prompt and navigate to Node folder location
write npm install @angular/cli and hit Enter some files will be downloaded.wait till the download get’s complete.usually it takes couple of minutes.
After installation a folder with name ‘node_modules’ will be created in Node folder.
come back to command prompt and type npm install -g @angular/cli then hit Enter. Again some set of files will be downloaded.wait till the download get’s completed.
Type ng and hit Enter. Some files will be initialised.
create new Angular project
Type ng new yourprojectname and hit Enter. Again some will be initialised.A new folder with name ‘yourprojectname’ will be created in Node folder.
After Successful project creation u will get these messages
Installed packages for tooling via npm.
Successfully initialized git.
Project ‘yourprojectname’ successfully created.
Now Node.js has been successfully installed.Next u need to download Visual Studio Code from https://code.visualstudio.com/download . A zip file will be downloaded extract it and install it after download.
Open Visual Studio code
Press Ctrl+Shift+E an explorer will be opened inside that there will be button with name Open Folder click on it and load ‘yourprojectname’ project from Node folder.Now all project related will be loaded in Explorer.
Click View –> Integrated Terminal
a powershell will be loaded in that type ng serve and hit Enter.The project will be compiled.
After compilation u will get a message like this
** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:6200/ **
copy http://localhost:6200/ and search in browser.
That’s it u a basic have created Angular Application using Node.js.