当前位置: 首页 > 知识库问答 >
问题:

错误:产卵未知

皇甫波峻
2023-03-14

我试图按照https://docs.angularjs.org/tutorial的教程操作,但在运行该命令时出错

npm run protractor

Angulal-PhoneCat@0.0.0 postinstall c:\git\Angulal-paractions\Angulal-PhoneCat bower install

Angulal-PhoneCat@0.0.0update-webdriver C:\git\Angulal-Paractions\Angulal-PhoneCat webdriver-manager更新

selenium standalone是最新的。chromedriver是最新的。

你能告诉我问题出在哪里吗?

这是我的量角器CONF.JS:

exports.config = {
  allScriptsTimeout: 11000,

  specs: [
    'e2e/*.js'
  ],

  capabilities: {
    'browserName': 'chrome'
  },

  chromeOnly: true,

  baseUrl: 'http://localhost:8000/',

  framework: 'jasmine',

  jasmineNodeOpts: {
    defaultTimeoutInterval: 30000
  }
};

共有1个答案

温浩大
2023-03-14

对于那些在Mac上出现此错误的人来说,以下公开问题可能会导致此错误:https://github.com/angular/webdriver-manager/issues/476

解决方案由Ciekawy提供。在

node_modules/webdriver-manager/built/lib/files/file_manager.js

在第166行添加以下代码:

fileUrl.url = fileUrl.url.replace(/_m1/, '');

然后,您需要更新chrome驱动程序来接收更改。如果使用NRWL的NX monorepo管理工具:

npx webdriver-manager clean
npx webdriver-manager update --gecko=false --versions.chrome=<version from chrome://versions>
 类似资料:
  • 我正试图用imager模块将内容上传到AmazonS3。我一直收到错误信息说, 我已经在我的电脑上安装了imagemagick,但它一直说它未链接,这可能是问题所在吗?我还尝试使用brew link imagemagick进行链接,但由于某些原因无法链接。我在用OSx。有办法吗? 谢谢

  • 我已经启动了一个节点。使用express generator的js应用程序,我遇到了一个奇怪的问题,无法通过浏览器查看页面两次,第一次加载正常,第二次加载不正常,因为节点进程以以下错误结束: 包裹json

  • 就在一周前,我还能在相同的Mac机上运行相同的项目,但在将我的系统android studio升级到3.0稳定版后,这个Cordova项目已经停止了从控制台和通过android studio构建。 请检查下面是控制台运行命令异常日志 Android Studio错误日志: 找不到com.android.tools.build:gradle:2.3.3。在以下位置搜索:https://repo1.M

  • 我安装了nodejs模块youtube-dl但我出现了错误 Events.js:72 throw er;//未处理的“error”事件^error:spawn ENOENT at errnoException(child_process.js:1001:11)at process.childprocess._handle.onexit(child_process.js:792:34) 非常感谢。

  • 问题 我已经将Csanchez的jenkins-kubernetes插件(版本0.12)部署到本地的Minikube/Kubernetes环境中。在Jenkins UI中配置pod模板和容器模板时,pod会自动生成并处理简单的作业。然而,当POD模板和容器模板在管道脚本中定义时,Jenkins Master拒绝连接,称POD已经连接到Master。 环境 minikube版本:V0.20.0 Ku

  • 为什么程序不起作用?当我在第一个问题上输入'1',然后在第二个问题上输入一些东西时,出现了一个红色文本:(程序没有完成,但它应该能工作,不是吗?) 线程“main”Java.lang.StringIndexOutOfBoundsException:字符串索引超出范围:0在Java.lang.String.Charat(String.Java:658)在javaApplication2.javaAp