Node.js
Using Node Version Manager (nvm)
Download and install by running:
Then download Node and select your version by running:
$ source ~/.bashrc # source your bashrc/zshrc to add nvm to PATH
$ command -v nvm # check the nvm use message
$ nvm install node # install most recent Node stable version
$ nvm ls-remote # list all the Node versions you can install
$ nvm alias default node # set the installed stable version as the default Node
npm usage
To install a package:
To install a package and save it in your project’s file:
$ npm install <package> --save
$ npm list [-g]
To find outdated packages:
To upgrade all or a particular package: