【发布时间】:2014-01-24 20:07:12
【问题描述】:
由于某种原因,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
jshint 二进制文件在 PATH 中,但是:
$ which jshint
/home/path/to/bin/jshint
该问题仅出现在 Ubuntu 上。在 OS X 上完美运行。我搜索了 official docs 无济于事。
如果有任何后果,请使用 bash。
【问题讨论】:
-
我在安装了
oh-my-zsh的 OS X (El Capitan) 上遇到了完全相同的问题。默认的 bash shell 不是问题。
标签: sublimetext3 jshint sublimelinter