MacOS Sonoma Intel Core i9
在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 check
at 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,在终端运行命令:
//or try this: curl https://install.meteor.com/\?release\=2.11.0 | sh
curl https://install.meteor.com/\?release\=2.13.1 | sh
npm cache clean --force
npm config get cache
yarn cache clean
rm -rf node_modules
brew install pyenv
pyenv install 2.7.18
export PATH="$(pyenv root)/shims:${PATH}"
yarn install --flat
yarn install --force
yarn install --ignore-engines