Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported platform for esbuild-android-arm64@0.13.9 #1707

Closed
steveebenezer opened this issue Oct 25, 2021 · 2 comments
Closed

Unsupported platform for esbuild-android-arm64@0.13.9 #1707

steveebenezer opened this issue Oct 25, 2021 · 2 comments

Comments

@steveebenezer
Copy link

I have exact CI config in GitHub Actions for 2 repos, but only this one repo is throwing me an error

$ npm install
Run npm install
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for esbuild-android-arm64@0.13.9: wanted {"os":"android","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS:    android
npm ERR! notsup Valid Arch:  arm64
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2021-10-25T16_53_05_010Z-debug.lo

Currently resolves if I install with the --force flag

@evanw
Copy link
Owner

evanw commented Oct 25, 2021

I suspect you're using an old version of npm that has a bug with optionalDependences, in which case this is a problem with npm, not with esbuild. Here's an example of an older version of npm having bugs with optionalDependencies: npm/npm#2679. From this thread it sounds like in really old versions of npm, shrinkwrap doesn't work with optionalDependences.

Does this problem reproduce on npm 7 (the latest version of npm)? Another thing you could potentially try is using npm install --no-optional, although it would probably be best to update npm instead since npm 7 has a lot of other improvements including improved performance.

@evanw
Copy link
Owner

evanw commented Jan 22, 2022

Closing due to age and lack of a response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants