0

我已经在 mac os x mountain lion (10.8) 中安装了 sublime text 2,以及插件 sublime linter。对于 css 验证,插件需要 node.js。

当我启动 sublime text 时,控制台会显示:

ValueError: Error from csslint: /Users/carloslopez/Library/Application Support/Sublime Text 2/Packages/SublimeLinter/sublimelinter/modules/libs/csslint/linter.js:23
    var report = CSSLint.verify(code, ruleset);
                         ^
TypeError: Cannot call method 'verify' of undefined
    at Object.exports.lint (/Users/carloslopez/Library/Application Support/Sublime Text 2/Packages/SublimeLinter/sublimelinter/modules/libs/csslint/linter.js:23:26)
    at Socket.<anonymous> (/Users/carloslopez/Library/Application Support/Sublime Text 2/Packages/SublimeLinter/sublimelinter/modules/libs/jsengines/node.js:31:31)
    at Socket.EventEmitter.emit (events.js:85:17)
    at Pipe.onread (net.js:424:51)

如何解决?谢谢!

4

1 回答 1

1

捆绑的 csslint-node.js 已损坏。使用 npm 为 node.js 提供的 csslint-node.js 作为解决方法

https://registry.npmjs.org/csslint/-/csslint-0.9.8.tgz

于 2012-07-30T20:51:37.480 回答