gpt4 book ai didi

node.js - Visual Studio Code nodejs 请求 'launch' : cannot launch target (reason: spawn node ENOENT)

转载 作者:搜寻专家 更新时间:2023-10-31 22:39:47 25 4
gpt4 key购买 nike

当我使用 visual studio code 调试 nodejs 应用程序时。visual studio code 告诉我 request 'launch': cannot launch target (reason: spawn node ENOENT)

enter image description here

我的nodejs版本是4.2.4

最佳答案

在 Windows 上运行时,通过在 VS 代码调试配置中指定 npm.cmd 而不是 npm 来解决这个问题

"runtimeExecutable": "npm.cmd",

关于node.js - Visual Studio Code nodejs 请求 'launch' : cannot launch target (reason: spawn node ENOENT),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34808246/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com