Requirements:
1.nodejs.
2.@angular/cli.

Procedure:
1.Install NVM (Node Version Manager):
By far the easiest way to install node.
run commad :
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash

-This installs NVM, use command ‘nvm -v’ to check if it is installed.

Note: Re-open Terminal after install ‘nvm'(if ‘nvm -v’ doesn’t work).

2.run command:
nvm install node

-This installs the latest version of node

To install a specific version of node use:
nvm install <version>
ex:
nvm install 6.11.5
(Installs version 6.11.5)

3.Install Angular CLI(Command Line Interface)
run:
npm install -g @angular/cli

To check run:
ng

Install pm2 (For running on Server. Skip this step if you are doing local setup):

npm install pm2 -g

—–AND YOU ARE GOOD TO GO

Leave a Reply

Your email address will not be published. Required fields are marked *