由于某种原因,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 上完美运行。我浏览了官方文档,但无济于事。
使用bash
如果那有任何后果。