yarnでローカルファイルをインストール対象に含めるとエラーになる
解決
$ yarn add file:hogehoge.tgz --update-checksums
yarn install sporadically fails with integrity check failure · Issue #6407 · yarnpkg/yarn · GitHub
事象
"fanmee-base-ui@file:fanmee-base-ui-v0.0.5.tgz":
version "0.0.5"
resolved "file:fanmee-base-ui-v0.0.5.tgz#5cdd18a4527b77da7096cebc8e9369913598d7fa"
installすると
$ yarn install --pure-lockfile
yarn install v1.21.1
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
error Integrity check failed for "hogehoge" (computed integrity doesn't match our records, got "sha512-BylNX5cjxfTEVZWfuqzCwTweRhZ+q9tkBi9f/B5eAwa/nAUi6hGtWwUi2dEfD9/eZayxt5CfQV3Zrb9UOK75qw== sha1-XN0YpFJ7d9pwls68jpNpkTWY1/o=")
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
addが必要かと思ったが、 yarn add ./hogehoge.tgz
だとエラーになる。