Tag Archives: nvm

NVM use error: exit status [How to Solve]

Solution:

1. First, the installation directory should be free of spaces and Chinese

2. Check whether the administrator permission is turned on and check the steps

3. Change environment variables

NVM_HOME should be the installation directory of nvm, such as C:\development\nvm
NVM_SYMLINK should be the directory of nodejs, as follows

should be C:\development\NVM\v16.13.0
note that both user variables and system variables need to be changed, and then OK OK
4. Close the terminal, reopen it, and then use NVM use.

nvm npm Error: segmentation fault [How to Solve]

Background

After NVM use switches the node version, NPM reports an error segmentation fault

My solution

sudo apt autoremove npm

Note: it must be autoremove, not remove. Remove is not completely cleared

Cause guess

There is a global NPM. The configuration of the global NPM affects the configuration of the NPM version corresponding to the node installed by the NVM