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 时仍然出现错误。
还有其他人遇到这个问题吗?
npm install karma-jasmine --save-dev
npm install karma-phantomjs-launcher --save-dev
然后将以下行添加到 karma.config.js
plugins : ['karma-jasmine', 'karma-phantomjs-launcher']
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)