当我使用 Visual Studio 代码调试 NodeJS 应用程序时。
视觉工作室代码告诉我request 'launch': cannot launch target (reason: spawn node ENOENT)
![enter image description here](https://i.stack.imgur.com/0y9Tu.png)
我的nodejs版本是4.2.4
在 Windows 上运行时通过指定设法克服这个问题npm.cmd
代替npm
在 VS Code 调试配置中像这样
"runtimeExecutable": "npm.cmd",
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)