Sublimetext3 升华链接器:警告:jshint已停用,无法找到';jshint';

Sublimetext3 升华链接器:警告:jshint已停用,无法找到';jshint';,sublimetext3,jshint,sublimelinter,Sublimetext3,Jshint,Sublimelinter,这完全是随机发生的。我所做的一切就是重新启动升华,接下来我知道我必须重新设置git.exe的路径,升华jshint被破坏。我以各种顺序移除并重新安装了Sublimiter和Sublimiter jshint,试图修复它 我还使用npm全局安装了jshint 超级链接器默认/用户设置: { "default": { "debug": false, "delay": 0.25, "error_color": "D02000",

这完全是随机发生的。我所做的一切就是重新启动升华,接下来我知道我必须重新设置git.exe的路径,升华jshint被破坏。我以各种顺序移除并重新安装了Sublimiter和Sublimiter jshint,试图修复它

我还使用npm全局安装了jshint

超级链接器默认/用户设置:

{
    "default": {
        "debug": false,
        "delay": 0.25,
        "error_color": "D02000",
        "gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
        "gutter_theme_excludes": [],
        "lint_mode": "background",
        "mark_style": "outline",
        "no_column_highlights_line": false,
        "paths": {
            "linux": [],
            "osx": [],
            "windows": ["C:\\Users\\x\\AppData\\Roaming\\npm\\node_modules\\jshint\\bin"]
        },
        "python_paths": {
            "linux": [],
            "osx": [],
            "windows": []
        },
        "rc_search_limit": 3,
        "shell_timeout": 10,
        "show_errors_on_save": false,
        "show_marks_in_minimap": true,
        "syntax_map": {
            "python django": "python",
            "html 5": "html",
            "html (django)": "html",
            "html (rails)": "html",
            "php": "html"
        },
        "warning_color": "DDB700",
        "wrap_find": true
    }
}
控制台:

SublimeLinter: jshint linter loaded 
reloading plugin SublimeLinter.commands
reloading plugin SublimeLinter.sublimelinter
plugins loaded
SublimeLinter: debug mode: on 
SublimeLinter: temp directory: c:\users\x\appdata\local\temp\SublimeLinter3 
SublimeLinter: computed PATH from system:
C:\Users\x\AppData\Roaming\npm\node_modules\jshint\bin
C:\Program Files\Common Files\Microsoft Shared\Windows Live
C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\Program Files\ThinkPad\Bluetooth Software\
C:\Program Files\ThinkPad\Bluetooth Software\syswow64
C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static
C:\Program Files (x86)\Common Files\Lenovo
C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\
C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\
C:\Program Files (x86)\Lenovo\Access Connections\
C:\Program Files\Common Files\Lenovo
C:\Program Files (x86)\Lenovo\Client Security Solution
C:\Program Files\Lenovo\Client Security Solution
C:\Program Files (x86)\OpenLDAP\kfw\Binary
C:\Program Files (x86)\Windows Live\Shared
C:\Program Files\Microsoft\Web Platform Installer\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\
C:\Program Files\Microsoft SQL Server\110\Tools\Binn\
C:\PROGRA~1\IBM\SQLLIB\BIN
C:\PROGRA~1\IBM\SQLLIB\FUNCTION
C:\Program Files\nodejs\
C:\Python27

SublimeLinter: WARNING: jshint deactivated, cannot locate 'jshint' 
SublimeLinter: found existing HTML syntax, version 3 
SublimeLinter: found existing Rails syntax, version 1 
found 3 files for base name Main.sublime-menu
Package Control: Skipping automatic upgrade, last run at 2014-07-30 10:51:51, next run at 2014-07-30 11:51:51 or after
根据,它要求您在路径中具有linter可执行文件

大多数linter插件需要安装linter二进制文件或库 并配置您的路径,以便SublimeLiner可以找到它。你必须 按照linter插件的安装说明成功安装 使用它


您是否尝试过打开一个终端窗口,看看如果键入
jshint--version
,会发生什么?如果已经在您的路径中,您应该看到类似于
jshint v2.5.0
的响应

此外,如果您和我一样,由于工作场所的限制而无法修改Windows
路径
变量,您可以像我在这里做的那样,将路径添加到默认的用户设置中。这对Sublime 3 build 3065有效

{
    "default": {
        "debug": false,
        "delay": 0.25,
        "error_color": "D02000",
        "gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
        "gutter_theme_excludes": [],
        "lint_mode": "background",
        "mark_style": "outline",
        "no_column_highlights_line": false,
        "paths": {
            "linux": [],
            "osx": [],
            "windows": ["C:/Users/myUserName/AppData/Roaming/npm"]
        },
        "python_paths": {
            "linux": [],
            "osx": [],
            "windows": []
        },
        "rc_search_limit": 3,
        "shell_timeout": 10,
        "show_errors_on_save": false,
        "show_marks_in_minimap": true,
        "syntax_map": {
            "python django": "python",
            "html 5": "html",
            "html (django)": "html",
            "html (rails)": "html",
            "php": "html"
        },
        "warning_color": "DDB700",
        "wrap_find": true
    }
}

SublimiteLiner要求您在路径中有jshint。您是否尝试过打开一个终端窗口,看看如果键入
jshint--version
,会发生什么?您应该看到类似于
jshintv2.5.0
的响应。哦。。。我以为升华者知道这条路就是它(那有点多余…?)。好吧把它放在路径中,它就会工作。谢谢。听起来不错,我会把它作为答案贴出来。事实上,它在Win8机器上帮助了我。