nvm vs npm #581
-
I am confused as to why do we use nvm instead of npm for downloading node.js in wsl? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@rishigarg256 NVM stands for node version manager, it needed to install things like node, npm, etc. On the other hand, NPM stands for node package manager which installs all the dependencies (packages) or dev-dependencies. |
Beta Was this translation helpful? Give feedback.
-
NVM is for installing different versions of node. Like if you want to install the current v18.2 version and try it out. while you want to use stuff that doesn't fully support it such as hardhat so you can install node v16.15( LTS) as well and choose which version you want to use. |
Beta Was this translation helpful? Give feedback.
@rishigarg256 NVM stands for node version manager, it needed to install things like node, npm, etc. On the other hand, NPM stands for node package manager which installs all the dependencies (packages) or dev-dependencies.