loeffel-io / ls-lint

An extremely fast directory and filename linter - Bring some structure to your project filesystem

Home Page:https://ls-lint.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installing npm module on M1 CPU fails

brunomperes opened this issue Β· comments

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

Please check out 1.10.0-beta.2