【发布时间】:2013-09-02 15:42:18
【问题描述】:
WARN [config]: config.configure() is deprecated, please use config.set() instead.
WARN [plugin]: Cannot find plugin "karma-phantomjs".
Did you forget to install it ?
npm install karma-phantomjs --save-dev
INFO [karma]: Karma v0.10.2 server started at http://localhost:9018/
WARN [launcher]: Can not load "PhantomJS", it is not registered!
Perhaps you are missing some plugin?
收到此错误。运行 npm install karma-phantomjs --save-dev 时出现错误。
npm ERR! 404 'karma-phantomjs' is not in the npm registry.
我安装了 karma-phantomjs-launcher --save-dev 但在运行 grunt watch 时仍然出现错误。
还有其他人遇到过这个问题吗?
【问题讨论】:
-
@karma-phantomjs@ 在 npm-registry 中根本不存在,@karma-phantomjs-launcher@ 出现的错误是什么?显示您的 gruntfile 也会有所帮助...
-
我在这里添加了我的 Gruntfile:pastebin.com/gzmcRSKF karma-phantomjs-launcher 安装得非常好。我没有错误。但是,当我运行 grunt watch 时,我仍然收到有关 phantomJS 的错误。当运行 phantomjs --version 我得到 1.9.1 的回报。
标签: phantomjs gruntjs karma-runner