Node.js

    Using Node Version Manager (nvm)

    Download and install by running:

      Then download Node and select your version by running:

      1. $ source ~/.bashrc # source your bashrc/zshrc to add nvm to PATH
      2. $ command -v nvm # check the nvm use message
      3. $ nvm install node # install most recent Node stable version
      4. $ nvm ls-remote # list all the Node versions you can install
      5. $ 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:

      1. $ npm install <package> --save
      1. $ npm list [-g]

      To find outdated packages:

      To upgrade all or a particular package: