Jonathan Andersson Jonathan Andersson - 1 year ago 89
Node.js Question

Is it possible to have more then one version of NPM installed without NVM?

Is it possible to have multiple versions of NPM installed without NVM? If it is, is there any command to view them like the command.

npm --version

I guess it's possible to have one version NPM for global and a other version for local projects?

As alex mentioned in the comments, NVM is a alternative to make this possible but is it possible without it?

qzb qzb
Answer Source

Yes, it is possible. Just install it locally:

$ mkdir -p npm2/node_modules
$ cd npm2
$ npm install npm@2

Now use your local npm instead global one:

$ npm --version
$ ./node_modules/npm/cli.js --version
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download