- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2022-02-05T05:27:48+00:00","default:src128","src128")
#author("2022-02-07T05:30:28+00:00","default:src128","src128")
&tag(MacPorts/yarn);
*目次 [#z4746feb]
#contents
*関連ページ [#c8d20f54]
*参考情報 [#c44cfb9c]
*トラブルシューティング [#j0a5c364]
**fontawesome-freeインストール時にincorrect data checkエラー [#y662db96]
-2022/02/05(土)Intel Mac mini 2018のMacPorts最新環境で発生。
-
-2022/02/05(土)Intel Mac mini 2018(macOS Monterey)のMacPorts最新環境で発生。
-yarn addでfontawesome-freeがインストールできない。
#pre{{
$ yarn add @fortawesome/fontawesome-free
(中略)
[2/4] 🚚 Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.4.tgz: incorrect data check".
info If you think this is a bug, please open a bug report with the information provided in "/Users/sora/work/rails61-demo/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
}}
-yarn-error.logの内容。
#pre{{
Yarn version:
1.22.17
Node version:
14.18.3
Platform:
darwin x64
Trace:
Error: incorrect data check
at Zlib.zlibOnError [as onerror] (zlib.js:187:17)
}}
-MBP2014(macOS Big Sur)だとエラーが発生しない。nodejs14じゃなくnodejs16でもOK。
-[[Zlib of node-v14.17.2-macos-x64 is broken · Issue #208 · vercel/pkg-fetch · GitHub:https://github.com/vercel/pkg-fetch/issues/208]]が関係しているのか?
-とりあえずnodejs16に以降した方がよいのか?とりあえず以下のようにした。
sudo port install nodejs16 yarn npm7