且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Sublime Text 3 SublimeLinter插件无法找到jshint

更新时间:2022-06-20 10:06:39

我最终通过打开SublimeLinter首选项并手动将路径添加到linter来解决了这个问题:

I eventually fixed this by opening up the SublimeLinter preferences and manually adding the path to the linter:

"paths": {
    "linux": ["/path/to/jshint/bin"],
    "osx": [],
    "windows": []
},

如果还没有,可以通过npm安装:

If you don't already have it, you can install via npm:

npm install -g jshint

您可以通过以下方式找到其位置:

And you find its location with:

which jshint

或在Windows中:

or in Windows:

where jshint