Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Couldn't add script to package.json: Error: spawn npm ENOENT (windows 10)

It looks like your program wants to run the npm command but cannot find it. Does npm work in a command window ? Is the directory where npm lives in the system global PATH ?
 
Yes npm command running fine. might be this issue with visual studio administrator rights because on my local machine its working fine with cli and intelliJ.
 
If it was a rights issue, you'd probably have seen an ENOACCES error. I really think this is a path issue. You could always run Process Monitor to be sure.
 

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom