gpt4 book ai didi

phantomjs - 无法在Karma中安装phantomJS

转载 作者:行者123 更新时间:2023-12-03 09:13:25 26 4
gpt4 key购买 nike

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安装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-devnpm install karma-phantomjs-launcher --save-dev
然后将以下行添加到karma.config.js
plugins : ['karma-jasmine', 'karma-phantomjs-launcher']

关于phantomjs - 无法在Karma中安装phantomJS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18523947/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com