Original error when building the project.
Specifically the "@esbuild/darwin-arm64" package is present but this platform needs the "@esbuild/darwin-x64" package instead. People often get into this situation by installing esbuild with npm running inside of Rosetta 2 and then trying to use it with node running outside of Rosetta 2, or vice versa (Rosetta 2 is Apple's on-the-fly x86_64-to-arm64 translation service).
Clear old binaries
Remove the incorrect esbuild
install:
rm -rf node_modules/esbuild node_modules/@esbuild
Reinstall with matching architecture
-
If you want ARM64 (Apple Silicon, recommended):
-
If you want x64 (Intel / Rosetta):
Ensure Node matches
-
Check what architecture your Node process is:
No comments:
Post a Comment