Installing npm module on M1 CPU fails
brunomperes opened this issue Β· comments
Bruno Peres commented
After moving to a Macbook with Apple M1 chip the installation of npm package is failing with the following message:
yarn install v1.22.10
[1/5] π Validating package.json...
[2/5] π Resolving packages...
[3/5] π Fetching packages...
error @ls-lint/ls-lint@1.9.2: The CPU architecture "arm64" is incompatible with this module.
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
node's process.arch
is giving me 'arm64'
, I'm on macOS 11.4 and node v14.17.3.
Any advice? I see there are some CPU restrictions on the package.json, but theoretically it should work?
Possibly related issues:
lovell/sharp#2460
gridsome/gridsome#1411
Lucas LΓΆffel commented
Please check out 1.10.0-beta.2