# There are many ways to install npm
npm i
npm install
sudo apt install npm
# to install globally, just add a -g or --global after the install or i
npm i -g
npm install -g
sudo apt install -g npm
# The best way to install npm is to install node from the website
# 'https://www.nodejs.org
# npm comes with the package, so nce you do this, npm is installed automatically
# To update npm, simply do
npm install latest-version # To install locally,
npm install -g latest-version # To install globally
# Note that the below are the same thing
# -g => --globall
# -v => --version
# i => install
$ npm install download
curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y npm
$ npm install
$ git add index.js package.json package-lock.json
$ git commit -m "initialize npm package"
$ git push
npm install package-name
To save as a dependency:
npm install package-name --save
npm install
#type this into your terminal when you have change to the correct directory
npm install | npm i <package>
git clone https://github.com/cloudhead/vows.git
cd vows
npm i