Setting up development environment
Install latest version of node
- Node: A runtime environment for executing JavaScript code outside the browser
- Node provides tools that we need to build angular project
- Go to nodejs.org and install LTS (Latest Stable)
Check Version
Open command prompt on windows
node --version
(or)
node -v
NPM
- NPM: node package manager to install third party libraries
Install Angular CLI
- Angular cli (command line interface)
- Command line tool used to create new angular project, generate boiler plate code, create deployable packages
- Install package globally
npm install -g @angular/cli
-g
stands for global, if skipped installs the library in local folder
To check the version
ng --version
Updating Angular CLI
npm install -g @angular/cli@latest
or
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli
Updating npm
npm install -g npm
Angular requires Node.js version 8.x or 10.x.