-
Notifications
You must be signed in to change notification settings - Fork 352
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
EBADPLATFORM
from npm ci
when running on netlify with >= 12.2.9
#5323
Comments
This is actually a problem in npm see npm/npm#2679 and evanw/esbuild#1707 I will try to manually patch our shrinkwrap to exclude these packages that were introduced in 26c409d#diff-44a7c69871c5958e657226d5552c9451606a778233fb824f68530d0cfd3f8994 |
Interesting maybe we can switch to a newer npm on netlify then to workaround it |
Although we are on the most recent lts (18.12.1) so it would be great if it could work again with that |
v12.5.0 is causing issues. This is a known bug. Check: netlify/cli#5323 Bug: T326198 Change-Id: I89907bb2beb58142a311ebb793b75dc642fa5f49
Any fix planned for this? We are now getting prompted to upgrade to fix a security issue thanks |
Unfortunately, we cannot fix this from our side at the moment yet. npm seems to have a lot of issues with shrinkwrapping, and all attempts to fix this so far just created more problems. |
Ok thanks for trying. I wrote a small cli to workaround the issue. https://github.com/tjenkinson/npm-ci-please So we can use Hopefully at some point npm will actually fix the root of the problem 🤞 |
- pinned version is 12.2.8 as the installation seems to fail since 12.2.9 see (netlify/cli#5323) for details
Couldn't find a solution to this issue. Guess we're stuck at |
I'm not overly familiar with npm shrinkwrap, but wouldn't it be a solution to use It was very hard to debug the issue that |
Describe the bug
npm ci
on netlify fails withSee build run here
Steps to reproduce
View this test repo.
It does not contain a package-lock, meaning the first
npm i
generates a package-lock on the instance. It then does annpm ci
, which fails with the error above.This did not used to happen with versions <= 12.2.8.
Ref video-dev/hls.js#5114
Ref video-dev/hls.js#5115
Configuration
https://github.com/tjenkinson/netlify-cli-install-error/blob/main/netlify.toml
Environment
My local environment shouldn't be relevant for this. Please see the repro.
The text was updated successfully, but these errors were encountered: