vue3 vite 指令生成的项目 如果配置国际化 pnpm 没办法 识别 vue-i18n 如果用 yarn 初始化可以识别 但是 在苹果端 安装依赖的时候会报错
error @esbuild/darwin-x64@0.25.4: The CPU architecture "arm64" is incompatible with this module.
error Found incompatible module.
vue3 vite 指令生成的项目 如果配置国际化 pnpm 没办法 识别 vue-i18n 如果用 yarn 初始化可以识别 但是 在苹果端 安装依赖的时候会报错
error @esbuild/darwin-x64@0.25.4: The CPU architecture "arm64" is incompatible with this module.
error Found incompatible module.
1***@163.com (作者)
你好 是用的yarn mac 电脑 在打包app 的时候报错 需要 x64 我安装过后 在通过yarn 安装其他的插件的时候报错 error @esbuild/darwin-x64@0.25.4: The CPU architecture "arm64" is incompatible with this module.
你可以 先通过yarn 安装一个 yarn add @dcloudio/uts-darwin-x64 --ignore-platform 然后在 随便 安装一个插件 比如 yarn add eslint --dev
2025-05-21 15:23
DCloud_UNI_JBB
回复 1***@163.com: 能发个复现demo吗
2025-05-21 15:27
1***@163.com (作者)
回复 DCloud_UNI_JBB: 怎么给你呢
2025-05-21 15:27