解决:mac visual code1.8.1 运行时提示:无法在 PATH 上找到运行时”node“。
来源:互联网 发布:数据库关联查询sql语句 编辑:程序博客网 时间:2024/05/16 02:13
mac visual code1.8.1 运行时提示:无法在 PATH 上找到运行时”node“。
找了半天,说怎么替换掉node.js的路径,例如这个
https://segmentfault.com/q/1010000005793371/a-1020000005812628
Mac Terminal:
1. $ which node 得出node.js真实路径 /path/to/node
2. $ ln -s /path/to/node /usr/local/bin/node 注意替换 /path/to/node
但我总是不信,我觉得不应该啊,因为已经在终端里可以执行node 和npm命令了
这里只是设置的问题。
虽然我是安装了nvm来管理node 版本。
再百度:到鬼佬的网站: http://stackoverflow.com/questions/31075763/vscode-0-3-cant-find-runtime-node-on-path 有用的部分看文章末尾。
我是这样解决问题:
用终端:
echo $PATH
弹出:
/Users/mac/.rvm/gems/ruby-2.3.0/bin:/Users/mac/.rvm/gems/ruby-2.3.0@global/bin:/Users/mac/.rvm/rubies/ruby-2.3.0/bin:/Users/mac/.nvm/versions/node/v5.1.0/bin:/Applications/Cocos/tools/ant/bin:/Applications/Cocos/frameworks:/Applications/Cocos/frameworks/cocos2d-x-3.9/tools/cocos2d-console/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/mac/.rvm/bin
弹出:
/Users/mac/.nvm/versions/node/v5.1.0/bin/node
到 vs code 的查找:runtimeExecutable
原来的值是null,
改为 “/Users/mac/.nvm/versions/node/v5.1.0/bin/node”
再运行就好了。
good boy!
NODE PATH FOR VSCODE VERSION 0.7.0
I'm running Ubuntu GNU/Linux 12.04.5 LTS. Before VSCode 0.7.0 I would leave my node path to the default found on the PATH in the launch.json file:
// Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH. "runtimeExecutable": null,
However, after the update to 0.7.0, I started receiving 'can't find runtime on "node" PATH'
errors even though node was on my PATH.
18:25:37 ツ gjsmith3rd@DV7:~ $echo $PATH/usr/bin:...//Plus the rest of the PATH18:25:44 ツ gjsmith3rd@DV7:~ 18:21:36 ツ gjsmith3rd@DV7:~ $which node/usr/bin/node18:21:43 ツ gjsmith3rd@DV7:~
I changed my launch.json to:
// Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH. "runtimeExecutable": "/user/bin/node",
Now all is working fine. The actual path is /usr/bin/
and the executable is node
.
- 解决:mac visual code1.8.1 运行时提示:无法在 PATH 上找到运行时”node“。
- Node在Visual Studio Code 上运行
- 关于Visual Studio写的项目在 IIS 服务器上运行时提示必须在管理员上下文中运行Visual Studio的解决方案
- mac os x 上运行gem出错提示的解决
- 解决cocoapods无法更换gem源:在Mac OS X上安装 Ruby运行环境
- Visual Studio 2005提示"试图运行项目时出错:无法启动调试。绑定句柄无效"的解决
- Visual Studio 2005提示"试图运行项目时出错:无法启动调试。绑定句柄无效"的解决
- Visual Studio 2005提示"试图运行项目时出错:无法启动调试。绑定句柄无效"的解决
- Visual Studio 2005 提示”试图运行项目时出错:无法启动调试。绑定句柄无效”的解决
- Visual Studio 2005 提示”试图运行项目时出错:无法启动调试。绑定句柄无效”的解决
- 在mac上运行ofbiz
- [ubuntu] 解决 eclipse 在启动器上无法运行的问题
- 悬而未决:在客户机上运行vb.net并创建web项目时,它老提示“无法与服务器建立连接”!
- 在研发时出现运行时错误System.ArgumentException无法在类中找到资源
- visual studio 2005 点运行时提示:"无法附加。绑定句柄无效。仍要继续吗?"
- Visual Studio 2003 提示”试图运行项目时出错:无法启动调试
- Visual Studio 2005 提示”试图运行项目时出错:无法启动调试。
- 试图运行项目时出错:无法在web服务器上...
- 删除Exchange Server 2013
- FOR XML PATH的使用方法
- java虚拟机内存分区
- 三极管概念工作原理及其应用
- 操作Cassandra(2)-添加,替换,移动和删除节点
- 解决:mac visual code1.8.1 运行时提示:无法在 PATH 上找到运行时”node“。
- 分解264/265裸流的帧
- 摄像机人工标定(OpenCV2.4.11)
- git入门
- oracle用逗号分隔符分割的字段,转换中文说明
- poj 2079 Triangle (旋转卡壳)
- lua c++ 相互调用
- 配置高并发jdbc连接池
- Bean的作用域