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

查看:389
本文介绍了在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天全站免登陆