Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
368 views
in Technique[技术] by (71.8m points)

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
odejs
ode.exe
Unexpected error(<class 'OSError'>): [WinError 6] 句柄无效。
Traceback (most recent call last):
  File "E:Sublime Text 3sublime_plugin.py", line 818, in run_
    return self.run(edit)
  File "C:UsersAdministratorAppDataRoamingSublime Text 3PackagesHTML-CSS-JS PrettifyHTMLPrettify.py", line 49, in run
    print(self.get_output_diagnostics(output))
  File "C:UsersAdministratorAppDataRoamingSublime Text 3PackagesHTML-CSS-JS PrettifyHTMLPrettify.py", line 111, in get_output_diagnostics
    index = output.find(OUTPUT_VALID)
AttributeError: 'NoneType' object has no attribute 'find'

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...