gpt4 book ai didi

phantomjs - 您的平台上没有适用于 PhantomJS 浏览器的二进制文件。请设置 "PHANTOMJS_BIN"环境变量

转载 作者:行者123 更新时间:2023-12-03 01:31:38 26 4
gpt4 key购买 nike

我的 package.json 看起来像这样..

"karma-phantomjs-launcher": "^0.1.4",
"karma-safari-launcher": "^0.1.1",
"karma-sinon-chai": "~0.2.0",
"karma-spec-reporter": "~0.0.16",
"mocha": "~1.20.1"

我的npm版本是2.2.0

当我运行 karma test - karma start my.conf.js 时,我为什么会得到这个信息

最佳答案

这似乎是 phantom js 运行程序和 phantom js 版本的问题。

https://github.com/karma-runner/karma-phantomjs-launcher/issues/31

我如何解决我的问题..

   # install 
npm install -g karma-phantomjs-launcher

# temporary path.. set the path
export PHANTOMJS_BIN=/usr/local/lib/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/bin/phantomjs

karma start my.conf.js

关于phantomjs - 您的平台上没有适用于 PhantomJS 浏览器的二进制文件。请设置 "PHANTOMJS_BIN"环境变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28336214/

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