【发布时间】:2020-02-20 07:40:16
【问题描述】:
我克隆了 Angular 存储库,但尝试使用推荐的命令 yarn 下载依赖项时出现错误:
错误文本输出控制台:
yarn install v1.18.0
$ node tools/yarn/check-yarn.js
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "graceful-fs@4.2.2" is incompatible with requested version "graceful-fs@~3.0.2"
warning Resolution field "graceful-fs@4.2.2" is incompatible with requested version "graceful-fs@^3.0.0"
warning Resolution field "graceful-fs@4.2.2" is incompatible with requested version "graceful-fs@~1.2.0"
[3/5] Fetching packages...
error An unexpected error occurred: "https://saucelabs.com/downloads/sc-4.5.1-linux.tar.gz: Request failed \"406 Not Acceptable\"".
info If you think this is a bug, please open a bug report with the information provided in "/home/andrusd/Escritorio/Files/angular/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
【问题讨论】:
-
日志显示尝试下载此软件包时出现错误
https://saucelabs.com/downloads/sc-4.5.1-linux.tar.gz -
你用什么纱线版本?
-
@pbachman 纱线 1.18.0
-
@Manish 正是日志说无法下载此文件。我的问题是如何解决,为什么会这样?
-
@AndrusDiaz 存在具有相同依赖关系但纱线版本 1.16.0 的问题,应该适用于 1.18.0 github.com/angular/angular/issues/31902