Whenever I update Node with nvm
, npm
is no longer available.
nvm install 14.19.3
> It says it's also downloading and installing npm.npm
> Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js'- Looking in
C:\Users\Username\AppData\Roaming\nvm\v14.19.3
, the subfoldernode_modules
is empty. It doesn't seem to have installed npm along with nvm, even though there was no error uponnvm install 14.19.3
.
From this post I understand the cause of a problem like this generally is a conflict in the environment variables of the OS (I'm using VSC on a Windows 10 machine).
But I can't find anything wrong there: PATH includes NVM_HOME
and NVM_SYMLINK
, which respectively point to C:\Users\Username\AppData\Roaming\nvm
and C:\Program Files\nodejs
.
How can I get this new version of Node to work?