在macos Intel芯片本上运行yarn install报错:
error https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.14.54.tgz: incorrect data check
error https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.14.54.tgz: incorrect data check
error https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.54.tgz: incorrect data check
error https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.54.tgz: incorrect data check
error https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.14.54.tgz: incorrect data check
error https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.54.tgz: incorrect data check
error https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.54.tgz: incorrect data check
error https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.14.54.tgz: incorrect data check
error Error: incorrect data checkat Zlib.zlibOnError [as onerror] (node:zlib:189:17)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
warning url-loader@1.1.2: Invalid bin field for "url-loader".
error https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.14.7.tgz: incorrect data check
error https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.7.tgz: incorrect data check
error https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.7.tgz: incorrect data check
这个错误参考https://docs.meteor.com/known-issues,在终端运行命令:
curl https://install.meteor.com/\?release\=2.13.3 | shnpm cache clean --force
npm config get cache
yarn cache cleanrf -rm node_modulesyarn install --force