gpt4 book ai didi

node.js - Windows 64 位中的 Testacular 无法启动浏览器

转载 作者:搜寻专家 更新时间:2023-11-01 00:26:17 24 4
gpt4 key购买 nike

<分区>

我正在尝试在 Windows 8 64 位中使用 Testacular 测试 AngularJS 应用。

当我运行“yeoman test”或“testacular start”命令时,我收到一条错误消息: “系统找不到指定的路径”:

C:\Users\me\Dropbox\GitHub\Studentportalen\studentportalen>yeoman test

Running "test" task
info: Testacular server started at http://localhost:8080/
info (launcher): Starting browser PhantomJS
warn (watcher): Pattern "C:/Users/me/Dropbox/GitHub/Studentportalen/st
udentportalen/test/mock/**/*.js" does not match any file.
error (launcher): Cannot start PhantomJS
CreateProcessW: The system cannot find the path specified.

info (launcher): Trying to start PhantomJS again.
error (launcher): Cannot start PhantomJS
CreateProcessW: The system cannot find the path specified.

info (launcher): Trying to start PhantomJS again.
error (launcher): Cannot start PhantomJS
CreateProcessW: The system cannot find the path specified.

info: Disconnecting all browsers
<WARN> Command failed: Use --force to continue. </WARN>

Aborted due to warnings.

我已经尝试将 Testacular 设置为使用 Chrome 而不是 PhantomJS,但得到了同样的错误。所以 PhantomJS 不是问题。

我听说这是因为 Node.js 不喜欢 64 位 Windows (?)。解决方法可能是设置 32 位 VM 进行测试,但这显然不是最佳选择。

这个问题有什么解决办法吗?

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