[Issue]: NPM commands give error: 11: exec: node: not found #1154
Replies: 3 comments 7 replies
-
I'm sorry you're going through this. That sounds frustrating. The first thing I'd suggest is reviewing any In the "unlikely, but still possible" category, are you installing NVM4WW with a forked version? This is very important because there was recently a fork that added junction support over the default symlink behavior. This is known to fail on hard drives that are not used for the installation (i.e. your Additionally, did Hopefully one of these things will lead you to an answer. If not, let me know. Since I don't think this is a bug, I'm going to move it to a discussion. |
Beta Was this translation helpful? Give feedback.
-
I very much appreciate the quick reply / feedback.
Still receiving the same error |
Beta Was this translation helpful? Give feedback.
-
For anyone else encountering issues with NVM and WSL2, the solution is stupidly easy 🤦♂️ You simply need to do all of your work moving forward in WSL after it is enabled. This includes install NVM in the subsystem and running node commands from within WSL. |
Beta Was this translation helpful? Give feedback.
-
What happened?
I have been battling an issue for months where I am unable to get NVM / Node to work on my desktop (works fine on my other machine).
Error from any repo running an npm command: 11: exec: node: not found
Via powershell I ran nvm debug "no problems detected"
I can run nvm -v, node -v, npm -v and get proper version results
C:\Program Files\nodejs is a symlink created by the exe that shows the current node files
My environment variables have %NVM_HOME% and %NVM_SYMLINK% with proper paths, and no other conflicting paths for nodejs
I have uninstalled node / nvm multiple times and reinstalled and continue to get the same error.
I have run nvm on
I have run Powershell / CMD with Administrative Priveleges
I have scoured Stack Overflow and tried any and all recommendations from both accepted answers and other suggested comments
I am unable to determine why npm commands are not working. Everything returns a correct result until I run an actual command.
The differences from my other machine are:
I am losing my mind on this and would like to be able to develop on my main machine again. Any help is greatly appreciated.
What did you expect to happen?
When running an npm command, my desktop should use the chosen version installed via NVM and should not give a "node not found" error.
Version
1.1.11 or newer (Default)
Which version of Windows?
Windows 11+
Which locale?
English (Default)
Which shell are you running NVM4W in?
Command Prompt, PowerShell
User Permissions?
Administrative Privileges, Elevated
Is Developer Mode enabled?
Yes
Relevant log/console output
Debug Output
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions