darwin-arm64v8 platform error
MattArnold opened this issue · comments
Operating system
macOS Ventura 13.0.1
Eleventy
^0.11.1
Describe the bug
I'm running Spacebook with Eleventy. Everything worked as expected, until I upgraded the MacOS version from Monterey to Ventura.
npm start
in iTerm2 to run the site locally outputs an error:
> eleventy --serve & postcss styles/tailwind.css --o _tmp/style.css --watch
Eleventy fatal error: (more in DEBUG output)
> Error in your Eleventy config file '/Users/____/___/_________________/.eleventy.js'.
`EleventyConfigError` was thrown
> 'darwin-x64' binaries cannot be used on the 'darwin-arm64v8' platform. Please remove the
'node_modules/sharp' directory and run 'npm install' on the 'darwin-arm64v8' platform.
Removing the 'node_modules/sharp' directory and running 'npm install', as directed in the error message, changes nothing.
When I push changes, Netlify still builds the site on the web without errors; the problem only occurs locally.
Additional context
MacBook Pro 16-inch, 2021, Apple M1 Max, Ventura 13.0.1
iTerm2 3.4.16 using zsh and fig
Reproduction steps
- Upgrade MacOS from Monterey to Ventura
- In iTerm2,
cd
to project directory - run
npm start
Expected behavior
npm start
should build the site with its new changes (if any), start a server locally, and output a localhost address to the terminal, with which to see the changes to the site in the browser.
Reproduction URL
No response
Screenshots
What version of sharp
do you have after reinstall? We may need to issue a new version for sharp
v0.31.x`
I'd also try bumping Eleventy to v1.x (although I'm suspecting this is more related to eleventy-img).
See https://sharp.pixelplumbing.com/install
Apple M1
Prebuilt sharp and libvips binaries have been provided for macOS on ARM64 since sharp v0.29.0.
Plus per the error output:
Please remove the 'node_modules/sharp' directory and run
npm install
on the 'darwin-arm64v8' platform.
Yeah, this should be strictly an eleventy-img issue—I did transfer it over earlier!
This is an automated message to let you know that this issue requires additional input from the original poster and for the health of the repository issue tracker the issue will be closed. This is to help alleviate issues hanging open waiting for a response from the original poster.
Do not let the issue’s closing deter you. After you’ve supplied the required information, the issue will be reopened. Thanks!
Note that sharp
0.31 is shipping with Eleventy Image v3.0.0 shortly.