相关疑难解决方法(0)

Sublime Text 3 SublimeLinter插件无法找到jshint

出于某种原因,SublimeLinter3或SublimeLinter3 JSHint linter插件似乎无法解析PATH环境变量,因此无法运行jshint:

SublimeLinter: Could not parse shell PATH output:
<empty> 
error: SublimeLinter could not determine your shell PATH. It is unlikely that any linters  will work. 

Please see the troubleshooting guide for info on how to debug PATH problems.
SublimeLinter: WARNING: jshint deactivated, cannot locate 'jshint' 
Can't connect
Unable to fetch update url contents
Run Code Online (Sandbox Code Playgroud)

然而,jshint二进制文件在PATH:

$ which jshint
/home/path/to/bin/jshint
Run Code Online (Sandbox Code Playgroud)

问题只发生在Ubuntu上.在OS X上完美运行.我通过官方文档搜索无济于事.

使用,bash如果有任何后果.

jshint sublimelinter sublimetext3

10
推荐指数
2
解决办法
1万
查看次数

标签 统计

jshint ×1

sublimelinter ×1

sublimetext3 ×1