0

Mac OS X マウンテン ライオン (10.8) にサブライム テキスト 2 とプラグイン サブライム リンターをインストールしました。CSS 検証のために、プラグインには node.js が必要です。

崇高なテキストを開始すると、コンソールに次のように表示されます。

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 に答える