-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Limit NPM compatible version to be below 7 #29000
Conversation
Size Change: 0 B Total Size: 1.38 MB ℹ️ View Unchanged
|
Do we still need this, now that npm 7.5.3 is out, and #28890 seems to fix the issue with Appium? |
Oh I didn't realised that there's a new NPM version 🎊 . I'll check it out but if it works with the Appium update we don't need this PR. |
Not sure why but looks like the CI is still failing with latest NPM version, you can check it in a PR I created that updates the lock file format version of I saw that NPM released recently a new version |
Thank you for making this! I also made a PR before I noticed this: #29204, it also tries to fix the
I believe we still need it until npm fixes npm/cli#2610. |
Thanks! Since your PR covers also the
Good catch, I'm not sure if there're more cases affected by this issue but I managed to fix the ones located in the package |
I've approved and merged that other PR 😄 I'll close this one. Thanks all! |
Didn't know that there's a workaround for that! Seems like that there are other issues though 😅 . |
Description
Related to #28834, we have a dependency that is producing an error when running
npm install
with NPM version 7. Since this issue is coming from NPM, until a fix is released we could limit the use of NPM to version 6.For this purpose, the PR adds a condition in the engine property of
package.json
file to set the version compatibility of NPM below 7.Documentation about the engine parameter: https://docs.npmjs.com/cli/v6/configuring-npm/package-json#engines
How has this been tested?
Verify that dependencies are installed with NPM version 6
npm install -g npm@6
.npm install
.Verify that dependencies are not installed and fails with NPM version 7
npm install -g npm@7
.npm install
.Screenshots
Types of changes
Bug fix
Checklist: