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

Angular6-无法解析Selenium中的“FS”-WebDriver\lib

曹镜
2023-03-14

-

./node_modules/selenium-webdriver/lib/devmode.js中的错误未找到模块:错误:无法解析'C:\users\test\desktop\ui-portal\node_modules\selenium-webdriver\lib'@./node_modules/selenium-webdriver/lib/devmode.js

我一直在寻找答案,但找不到任何有用的东西--有人以前见过这个特殊的问题吗?我的package.json文件如下:

{
  "name": "ui-portal",
  "version": "0.0.1",
  "license": "MIT",
  "scripts": {
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^5.2.0",
    "@angular/common": "^5.2.0",
    "@angular/compiler": "^5.2.0",
    "@angular/core": "^5.2.0",
    "@angular/forms": "^5.2.0",
    "@angular/http": "^5.2.0",
    "@angular/platform-browser": "^5.2.0",
    "@angular/platform-browser-dynamic": "^5.2.0",
    "@angular/router": "^5.2.0",
    "@ngx-translate/core": "9.1.1",
    "@ngx-translate/http-loader": "2.0.1",
    "applicationinsights-js": "^1.0.18",
    "bootstrap": "3.3.7",
    "core-js": "^2.4.1",
    "font-awesome": "^4.7.0",
    "ng4-loading-spinner": "^1.1.3",
    "ngx-bootstrap": "^3.0.1",
    "rxjs": "^5.5.6",
    "source-sans-pro": "^2.20.2",
    "zone.js": "^0.8.19"
  },
  "devDependencies": {
    "@angular/cli": "1.6.5",
    "@angular/compiler-cli": "^5.2.0",
    "@angular/language-service": "^5.2.0",
    "@compodoc/compodoc": "^1.0.1",
    "@types/chai": "^3.5.1",
    "@types/jasmine": "~2.8.3",
    "@types/jasminewd2": "~2.0.2",
    "@types/node": "~6.0.60",
    "codelyzer": "^4.0.1",
    "diff": "^3.4.0",
    "jasmine-core": "~2.8.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~2.0.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-cli": "~1.0.1",
    "karma-coverage-istanbul-reporter": "^1.2.1",
    "karma-jasmine": "~1.1.0",
    "karma-jasmine-html-reporter": "^0.2.2",
    "karma-mocha-reporter": "^2.2.3",
    "karma-sourcemap-loader": "^0.3.7",
    "karma-tfs-reporter": "^1.0.1",
    "mocha": "^4.0.1",
    "onchange": "^3.2.1",
    "protractor": "~5.1.2",
    "rimraf": "^2.6.1",
    "ts-node": "~4.1.0",
    "tslint": "~5.9.1",
    "typescript": "~2.5.3",
    "webpack-bundle-analyzer": "^2.9.0"
  }
}

提前感谢各位的指点!这一点真的没有进展:(

共有1个答案

祖利
2023-03-14

我在ng测试时也遇到了同样的问题

角CLI:6.1.2节点:8.9.1

对我来说问题是使用

 类似资料: