- Installed node.js v0.10.29 with .msi (includes npm v1.4.14)
npm install -g npm
(updating npm to v1.4.20)npm -v
: v1.4.14 (located inc:\Program Files\nodejs\node_modules\npm
)- npm v1.4.20 is located in
c:\Users\User\AppData\Roaming\npm\node_modules\npm
echo %path
:C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\nodejs;C:\Ruby200-x64\bin;C:\python27
- Removing the bold part leaves me with
sh.exe": npm: command not found
- Adding
%AppData%\npm\node_modules
doesn't fix it
- Removing the bold part leaves me with
6. Adding NODE_PATH
to system wide environment variables with %AppData\npm\node_modules
is not helping
The problem is essentially that it refuses to recognize the global npm installation in %AppData%\npm\node_modules
even when I remove C:\Program Files\nodejs
from the path and replace it with %AppData%\npm\node_modules
.
What am I doing wrong? How do I fix this?