Front-end learning record 001_nvm installation under Windows

One, nvm download version and installation

1.1 nvm installation

After modifying the path according to your own ideas, you can go to Next all the way to Install.

1.2 Environment variables after successful installation of nvm

1.3 Directory after successful installation of nvm

The content of settings.txt can be configured to mirror node and npm to avoid download errors.
root: D:\H5\nvm
path: D:\H5\nodejs
node_mirror:http://npm.taobao.org/mirrors/node/
npm_mirror:http://npm.taobao.org/mirrors/npm/

Install node 8.11.3

1.4 Run the'node -v' command to report an error

If you run the'node -v' command and the system prompts'Access denied', then it is likely that the file downloaded by node is damaged. Delete the existing node version and re-install using the nvm command.

Two, node and npm

After the nvm installation is complete, the command lines of node and npm can be used normally.

Reference article

Install nvm management node version + webstorm configuration
front-end case-nvm installation and configuration under windows

Guess you like

Origin blog.csdn.net/Duckdan/article/details/113250767