I have a learna package, which has a dependency runs only on x64 arch. Is there any ways to skip the particular dependency installation if arch is not x64?
Tried this in package.json of the dependency
"cpu": [
"!arm64"
],
but the entire build failing.
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for plugin: wanted {"arch":"!arm64"} (current: {"os":"darwin","arch":"arm64"})
npm ERR! notsup Valid OS: undefined
npm ERR! notsup Valid Arch: !arm64
npm ERR! notsup Actual OS: darwin
npm ERR! notsup Actual Arch: arm64