Wednesday, 24 May 2017

How to have a different version of npm for a particular version of Node.js?

If the requirement is to use Node.js v4.x, and npm v3.x, I was able to use

nvm install --lts=argon

to install Node v4.8.3 LTS. But on the Node / npm release page, it says Node v4.8.3 comes with npm 2.15.11. Any npm 3.x comes with only Node v5.x.

In this case, how can we make npm v3.x while keeping Node at version 4.x?



via 太極者無極而生

No comments:

Post a Comment