在安装了几个包之后,当我尝试在sublime text 2中保存文件时,我一直收到这个错误:
[Error 2] The system cannot find the file specified
[cmd: [u'node', u'C:\\Users\\johndoe\\AppData\\Roaming\\Sublime Text 2\\Packages/JSLint/linter.js', u'--predef', u"['angular', 'document', '$', '_', 'JQuery', 'FB']", u'--sloppy', u'--indent', u'2', u'--node', u'--nomen', u'--vars', u'--plusplus', u'--stupid', u'--todo', u'V:\\editFormDisableColumns.js']]
[dir: V:\]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\]
[Finished]发布于 2013-11-22 02:10:35
如果您查看README for JSLint,您会注意到它需要在您的路径中安装Node.js (此选项在Windows installer中默认为启用)。一旦你这样做了,重启Sublime,你应该已经设置好了。
更重要的是,SublimeLinter包含内置的jslint,因此这两个包本质上是多余的。访问Package Control website,查找您的各种包,并阅读所有关于它们的内容,这样您就不会遇到冗余或冲突。
https://stackoverflow.com/questions/20126841
复制相似问题