在 PATH 上找不到运行时“节点" - Visual Studio Code 和 Node.js [英] Cannot find runtime 'node' on PATH - Visual Studio Code and Node.js

查看:26
本文介绍了在 PATH 上找不到运行时“节点" - Visual Studio Code 和 Node.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下载并安装了 Visual Studio Code 1.2.1 版本,并将 64 位版本的 node.exe msi 放置在我的工作目录中(我假设这是正确的),我们如何添加 node 和 npm 命令行工具在我们的路径上?我对理解该声明感到困惑.我们在哪里以及如何实施?我直接从这个资源页面的顶部引用了这个要求 - https://code.visualstudio.com/Docs/runtimes/nodejs

With a downloaded and installed version of Visual Studio Code 1.2.1, and a 64bit version of node.exe msi placed in my working directory (I am assuming that is correct), how do we add node and npm command line tools to be on our PATH? I am confused in understanding that statement. Where and how do we implement that? I am quoting this requirement directly from the top of this resource page - https://code.visualstudio.com/Docs/runtimes/nodejs

由于我目前的情况,我在 app.js 文件中设置了一个断点.当我按 F5 时,它告诉我...

As a result of my current situation, I set a break-point in an app.js file. And when I hit F5, it tells me...

Cannot find runtime 'node' on PATH 

我完全无法理解和解决 Visual Studio Code 中的这个问题.

I am completely lost in understanding and fixing this issue in Visual Studio Code.

推荐答案

为了跟进,我也遇到了这个问题.当我安装 Node.js 时,有一个选项说添加到 PATH(重启后可用).似乎 Windows 只需要重新启动即可使其正常工作.

To follow up, I just ran into this as well. When I installed Node.js there was an option that said Add to PATH (Available After Restart). Seems like Windows just needs a restart to make things work.

这篇关于在 PATH 上找不到运行时“节点" - Visual Studio Code 和 Node.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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