簡體   English   中英

紗線安裝 Angular

[英]yarn install Angular

我克隆了 angular 存儲庫,但是在嘗試使用推薦的命令yarn下載依賴項時出現錯誤:

錯誤文本 output 控制台:

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 :請求失敗“406 不可接受”。

第 1 步:從packages.json中刪除以下兩個腳本

   1. `preinstall`

   2. `presetup`

第 2 步:使用npm和命令npm install安裝軟件包

第 3 步:現在,運行yarn setup命令來安裝所有依賴項、樣板文件、stackblitz、zip 並在文檔上運行 dgeni。

第 4 步:最后運行命令yarn start ,這是暫時的解決方案

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM