npm is the Node Package Manager. It differs from nvm in the following ways:
nvmis used to determine which version ofnodewe are using- Once we’ve settled on a version of
node,npmuses the information in ourpackage.jsonto load the dependencies for our specific project.
Once npm is installed, we can update our npm version by typing the following:
npm install -g npm