Cmder 打开sublime text后的nodejs依赖

sublime text 3很多插件依赖nodejs环境,在ST3里直接设置好就能用了,但是如果用cmder的窗口内打开sublime text,当使用这些插件的时候,又会报错说nodejs路径未指定。。
图片描述

这要怎么设置?
nodejs路径是已经设置好了的,环境变量也是安装自动加入的。不用cmder打开ST3没问题,用cmder打开sts,使用st3的插件就报错。

*

*sublime text 控制台报错如下(不用cmder就没这个错误):

**

Using node.js path on 'windows': C:\Program Files\nodejs\node.exe
Unexpected error(<class 'OSError'>): [WinError 6] 句柄无效。
Traceback (most recent call last):
  File "E:\Sublime Text 3\sublime_plugin.py", line 818, in run_
    return self.run(edit)
  File "C:\Users\Administrator\AppData\Roaming\Sublime Text 3\Packages\HTML-CSS-JS Prettify\HTMLPrettify.py", line 49, in run
    print(self.get_output_diagnostics(output))
  File "C:\Users\Administrator\AppData\Roaming\Sublime Text 3\Packages\HTML-CSS-JS Prettify\HTMLPrettify.py", line 111, in get_output_diagnostics
    index = output.find(OUTPUT_VALID)
AttributeError: 'NoneType' object has no attribute 'find'
阅读 4.1k
1 个回答

你直接 windows + R 打开 cmd 输入 node 看看能不能进入?
然后再在你的 cmder 里面输入node,看看能不能进入?

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进