# 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