Two node assistive tools NRM and NVM

Time:2021-2-23

If you are in a brand new development environment, focus on (BRAND NEW!)
I don’t recommend that you go to node Chinese immediately to download the latest nodejs package, but I suggest that you go to NVM to download version management tools and start your own programming journey

nvm ( Node Version Manager )

Question: how to maintain multiple node versions to make better use of different projects?
Solution: the generation of NVM can facilitate the management of multiple node versions on the same device
If you have already downloaded the installation package

Two node assistive tools NRM and NVM

Two node assistive tools NRM and NVM

Two node assistive tools NRM and NVM

To complete the installation, you may encounter some difficulties

Two node assistive tools NRM and NVM

At this time, we need to configure the environment variable link

Use the window key + R to run the CMD command, open the console window, and enter NVM
Two node assistive tools NRM and NVM

We can see that our NVM has been successfully installed

nrm ( NPM registry manager )

Problem: we often feel very slow when using NPM installation package. This is the problem of installation source
Solution: install a NRM

Global installation
NPM install – G NRM or NPM I – G NRM

Enter NRM to see

Two node assistive tools NRM and NVM

At this point, we have successfully installed

Enter NRM ls to view the corresponding list of available sources. A * in front represents the currently used source

Two node assistive tools NRM and NVM

By using the corresponding character in front of the NRM use source, such as NRM use NPM, you can switch to the corresponding source

Two node assistive tools NRM and NVM

summary

1. Using NRM can control the version of nodejs
2. Using NVM can control the NPM source