纱线哈希不匹配

时间:2018-07-13 08:15:19

标签: angular yarnpkg

我尝试用YARN安装angular(6)软件包,但出现错误。我使用这些参数启动了YARN命令,以忽略完整性检查,但我仍然遇到相同的哈希完整性错误

yarn --skip-integrity-check --verbose

输出

.....
verbose 16.287 Performing "GET" request to "https://***artifactory.***********.com/artifactory/api/npm/npm/@angular/compiler/-/compiler-6.0.9.tgz".
verbose 16.288 Performing "GET" request to "https://***artifactory.***********.com/artifactory/api/npm/npm/@angular/platform-browser/-/platform-browser-6.0.9.tgz".
verbose 16.288 Performing "GET" request to "https://***artifactory.***********.com/artifactory/api/npm/npm/@angular/http/-/http-6.0.9.tgz".
verbose 16.472 Error: https://***artifactory.***********.com/artifactory/api/npm/npm/tslib/-/tslib-1.9.3.tgz: Fetch succeeded for "tslib". However, extracting "https://***artifactory.***********.com/artifactory/api/npm/npm/tslib/-/tslib-1.9.3.tgz" resulted in hash "5fd14f0b3cf32ea50358c5ef7db1fb31177a89d7", which did not match the requested hash "d7e4dd79245d85428c4d7e4822a79917954ca286".
    at SecurityError.ExtendableBuiltin (C:\work\data\npm\node_modules\yarn\lib\cli.js:243:66)
    at SecurityError.MessageError (C:\work\data\npm\node_modules\yarn\lib\cli.js:272:123)
    at new SecurityError (C:\work\data\npm\node_modules\yarn\lib\cli.js:301:113)
    at Extract.<anonymous> (C:\work\data\npm\node_modules\yarn\lib\cli.js:62386:16)
    at Generator.next (<anonymous>)
    at step (C:\work\data\npm\node_modules\yarn\lib\cli.js:98:30)
    at C:\work\data\npm\node_modules\yarn\lib\cli.js:116:14
    at new Promise (<anonymous>)
    at new F (C:\work\data\npm\node_modules\yarn\lib\cli.js:23451:28)
    at Extract.<anonymous> (C:\work\data\npm\node_modules\yarn\lib\cli.js:95:12)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

角度包

 "dependencies": {
    "@angular/animations": "^6.0.3",
    "@angular/common": "^6.0.3",
    "@angular/compiler": "^6.0.3",
    "@angular/core": "^6.0.3",
    "@angular/forms": "^6.0.3",
    "@angular/http": "^6.0.3",
    "@angular/platform-browser": "^6.0.3",
    "@angular/platform-browser-dynamic": "^6.0.3",
    "@angular/router": "^6.0.3",
    "core-js": "^2.5.4",
    "rxjs": "^6.0.0",
    "zone.js": "^0.8.26"
  },
  "devDependencies": {
    "@angular/compiler-cli": "^6.0.3",
    "@angular-devkit/build-angular": "~0.6.8",
    "typescript": "~2.7.2",
    "@angular/cli": "~6.0.8",
    "@angular/language-service": "^6.0.3",
    "@types/jasmine": "~2.8.6",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "~8.9.4",
    "codelyzer": "~4.2.1",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~1.7.1",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.0",
    "karma-jasmine": "~1.1.1",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.3.0",
    "ts-node": "~5.0.1",
    "tslint": "~5.9.1"
  }

注意:

  • Windows 7
  • 我落后于代理人
  • 我在纱线中配置了代理

有帮助吗?谢谢

0 个答案:

没有答案