Integrity check failed for ... (computed integrity doesn't match our records, got ...
栏目:
NodeJs
发布时间:2022-05-25
执行 yarn install 命令报如下错误:
yarn install v1.19.1
warning ../../../../package.json: No license field
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
error https://xxxxxx@xx%2fxxxxxx.tgz: Integrity check failed for "@styd/st-data-set" (computed integrity doesn't match our records, got "sha512-j0dWBlUGDVmFV5HD2Cw5vLqwBBfaIfKfc8kx/KlUCh64Dt7SMchpz9lO7fviQYUGwDIUPTIFGO2dOpV0jlswBA== sha1-Eb/deKDSFB1jRsJLztbHUlY9tiM=")
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
npm notice
npm notice New minor version of npm available! 8.1.0 -> 8.10.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.10.0
npm notice Run npm install -g npm@8.10.0 to update!
npm notice
解决方法
yarn cache clean
yarn --update-checksums
yarn install
过程如下:
$ yarn cache clean
yarn cache v1.19.1
warning ../../../../package.json: No license field
success Cleared cache.
✨ Done in 31.67s.
$ yarn --update-checksums
yarn install v1.19.1
warning ../../../../package.json: No license field
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning " > vue-countup-v2@3.0.1" has incorrect peer dependency "countup.js@latest".
warning " > vue-countup-v2@3.0.1" has incorrect peer dependency "vue@latest".
warning " > eslint-plugin-prettier@3.1.2" has unmet peer dependency "prettier@>= 1.13.0".
warning " > stylelint-prettier@1.1.2" has unmet peer dependency "prettier@>= 0.11.0".
[4/4] 🔨 Building fresh packages...
success Saved lockfile.
✨ Done in 181.59s.
$ yarn install
yarn install v1.19.1
warning ../../../../package.json: No license field
[1/4] 🔍 Resolving packages...
success Already up-to-date.
✨ Done in 2.53s.
本文地址:https://www.tides.cn/p_node-integrity-check-failed-computed-integrity-doesnt-match-our-records