How to Install NodeJs and Angular CLI
Steps for installing NodeJS
- Open https://nodejs.org/
- Download the LTS version and install it. ( *LTS – Long term support)
- After installation, opens the “NodeJS” command prompt.
- Check the installed version by this command:
# node -v - Check the version of NPM
# npm -v
Install TypeScript
- Type the following command to install Typescript:
# npm install -g typescript
Install Angular CLI
- Type the following command to install AngularCLI:
# npm install -g @angular/cli - Check the version of installed AngularCLI by this command:
# ng v