79174881

Date: 2024-11-10 12:23:42
Score: 1.5
Natty:
Report link

For windows users, nvm for Windows is a little tricky.

Check 1. The node path is actually in the Environment variables. in my case, it is ~\AppData\Roaming\npm The node path is necessary

Check 2. The %NVM_HOME% and also %NVM_SYMLINK% is set. And they also should be set in the PATH variable

See if they are properly set

Check 3. The npm path actually contains the node.js. If it doesn't, it probably is a reminant of the old installation. In my case, I remove it with rm -rf. The reason it blocks nvm, is that nvm(fow windows) have to set up sym link in that path. If there is a real file in the path, nvm(for windows) will fail silently. Original NPM package

The above image is missing the node. instead it should be like:

Proper nvm synlink

Even if the symlinks doesn't work, and the environment variables are wrong, It should be possible to run node and npm from this directory directly.

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Shi Kin Ma