Reputation:
I have paths to Node and NPM in both my user defined environment variable PATH
and in system variable Path
.
For node: C:\Program Files\nodejs
For npm: C:\Users\Username\AppData\Roaming\npm
Now node
and npm
are recognized by Windows Command 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:
Upvotes: 17
Views: 24046
Reputation: 2446
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.
Upvotes: 0
Reputation: 9
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!
Upvotes: 0
Reputation: 441
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
.
Upvotes: 30