2. bg to run it in background.
3. disown -h [job-spec] where [job-spec] is the job number (lik
e %1 for the first running job; find about your number with the jobs command) so that the job isn't killed when the terminal closes.example: disown -h %1
e %1 for the first running job; find about your number with the jobs command) so that the job isn't killed when the terminal closes.npm install -g angular-cliAfter that using the angular-cli, we can create angular2 project.
ng new your-project-nameAnd go to the project directory and run the server.
cd your-project-name ng serveThe first project will be run on http://localhost:4200.
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
After that npm is also installed along with node.js. To check version of node write:node -v
To check npm:npm
To update npm to the latest version:sudo npm install npm@latest -g
To fix npm permissions, first, create a folder in current user's home directory. Copy directory path to the newly created folder.mkdir npm-global
cd npm-global
pwd
Set npm prefix setting to that folder.npm config set prefix /home/current-user/npm-global
Add path /home/current-user/npm-global/bin to the system PATH settings. Open .profile file.vi ~/.profile
Add following line to the fileexport PATH=$PATH:/home/current-user/npm-global/bin
Reset settings by:source ~/.profile