HOW TO SETUP node.js and NPM on windows (best way)
STEP 1:
Download nvm-setup exe:
(or)
Visit here:
https://github.com/coreybutler/nvm-windows/releases
and download the nvm-setup.exe file
STEP 2:
After finishing nvm installation, open cmd and type:
nvm --v
Now you will be able to see the installed nvm version.
This means that nvm is correctly installed on your machine.
STEP 3:
To install the latest LTS version of node.
Run:
nvm install lts
(or)
STEP 4:
If you want to download any other version of node.
Run:
nvm list available
This will give you all the available version of node js.
After that,
Run:
nvm install <version>
STEP 5:
After installation is completed,
Run:
nvm list //to view the installed node version(s) in your machine.
STEP 6: Now run this command:
nvm use <version>
{You have successfully installed node , which also installs NPM in your machine*
To check, run: node -v & npm --v }
Comments
Post a Comment