Visual Studio 代码 nodejs 请求“启动":无法启动目标(原因:生成节点 ENOENT) [英] visual studio code nodejs request 'launch': cannot launch target (reason: spawn node ENOENT)

查看:43
本文介绍了Visual Studio 代码 nodejs 请求“启动":无法启动目标(原因:生成节点 ENOENT)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 Visual Studio 代码调试 nodejs 应用程序时.Visual Studio 代码告诉我 request 'launch': cannot launch target (reason: spawn node ENOENT)

When I use visual studio code to debug a nodejs app. visual studio code tell me request 'launch': cannot launch target (reason: spawn node ENOENT)

我的 nodejs 版本是 4.2.4

My nodejs version is 4.2.4

推荐答案

在 Windows 上运行时通过在VS code调试配置就这样

Managed to get past this when running on Windows by specifying npm.cmd instead of npm in the VS code debug configuration like so

"runtimeExecutable": "npm.cmd",

这篇关于Visual Studio 代码 nodejs 请求“启动":无法启动目标(原因:生成节点 ENOENT)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆