current position:Home>After the node is successfully installed, CMD can be executed, but the compiler webstorm runs NPM install and prompts that there is no solution to this command

After the node is successfully installed, CMD can be executed, but the compiler webstorm runs NPM install and prompts that there is no solution to this command

2022-04-29 17:15:59WindNolose

Problem description

node Installation successful , stay cmd Can run in the window node Command and npm command , But I can't find the command in the compiler
 Insert picture description here
 Insert picture description here

terms of settlement

First check whether the environment variable is configured
 Insert picture description here

 Insert picture description here
Use msi install node after , The following configuration will be added by default , If not, you can add it manually
Path is node Installation path for
 Insert picture description here

Open Settings
 Insert picture description here
Pictured , Find the following configuration , Modify to cmd.exe Corresponding place
Usually in this position :C:\Windows\system32\cmd.exe
 Insert picture description here
After setting successfully, if there is no effect , Try restarting the compiler , Or restart the computer directly
Try it again
 Insert picture description here
success

copyright notice
author[WindNolose],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/119/202204291519000361.html

Random recommended