Node & Npm not recognized by WebStorm's terminal
Solution 1
I had similar issue. I had to select File
-> Exit
from the IntelliJ application as opposed to using IntelliJ's internal restart option: File
-> Invalidate Caches / Restart
-> Just Restart
.
Solution 2
I had the similar problem like this.I was working with my project with another computer. and after that i decide to work with this project with my computer.so after moving the Files of project. i installed the Node.js and i had all of the paths about Node but when i was want to Run the project. i had this problem. i search a lot but nothing works. so i guess maybe when i restart my computer the new paths of variable system will work well. i restarted and my problem solved!
Solution 3
For those who are encountering this problem when you try to edit the run configuration, you have to put "start" as the command instead of "npm". By default Webstorm knows it's a npm project so it already starts with npm, you simply have to put the start command after that.
Admin
Updated on June 27, 2022Comments
-
Admin almost 2 years
I have paths to Node and NPM in both my user defined environment variable
PATH
and in system variablePath
.For node:
C:\Program Files\nodejs
For npm:
C:\Users\Username\AppData\Roaming\npm
Now
node
andnpm
are recognized by WindowsCommand Prompt
but not by WebStorm's terminal. I get error:'node' is not recognized as an internal or external command
Does anyone know what is problem? I could use WebStorm's terminal normally till today, but something went wrong and now I'm stuck.
EDIT:
echo %PATH%
screenshot:Settings/Tools/Terminal
screenshot:
-
Sebastian Nielsen almost 5 yearsYes, finally! You solved my issue! Who would have known all I had to do was press the "exit". What a nightmare ...
-
chris about 4 yearsIf you have the JetBrains toolbox it seems you must also exit this or the path won't change
-
Olasunkanmi almost 3 yearsThis actually worked for me just now. Thanks so much !