Node.js – Install npm (Node.js Package Manager) on Windows (w/o using Node.js MSI)

installationnode.jsnpm

The problem: while using nvm to install Node.js I was able to install the version of Node.js I need, but nvm does not install npm automatically. NPM's page provides no information about installing it. Being not much of a Windows user myself I am completely at a loss…

Every result in Google seems to use Node.js MSI installer to get that working – which is not an option in my case. So, how do I?

Best Answer

To install npm on windows just unzip the npm archive where node is. See the docs for more detail.

npm is shipped with node, that is how you should install it. nvm is only for changing node versions and does not install npm. A cleaner way to use npm and nvm is to first install node as it is (with npm), then install the nvm package by npm install nvm