-
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
Dependencies install fails in NPM version 7.5.2 due to Appium #28834
Comments
This issue is related with the following Appium's issue: appium/appium#14901. |
Bumping Appium to latest version
I'll keep investigating but I tried to install this dependency in an empty project and it works so it might be related to something specific to the project or caching. |
Thanks @fluiddot! I'm seeing the same issue here (also tried upgrading to I'm a bit surprised we're not seeing this more widely reported in Slack 🤔 Maybe it's platform specific? FWIW, I'm on Linux. |
(FWIW, my local workaround for now is to use node 12 and npm |
Yeah, actually some people already noticed the issue but it was bypassed by downgrading to |
👋 Haiii! I ran into this last week when I was setting up my new computer. At first, I thought it may have been my computer (it's an M1 MacBook). Because of the M1 chip. I thought perhaps development things were still weird. I tried a bunch of stuff, including clearing npm cache, forcing specific versions of I was (finally) able to resolve it by downgrading to npm@6. Update: That being said... I was able to get non Gutenberg development projects working with npm@7. |
Yeah I solved it by downgrading too. |
Hi! I couldn't reproduce it when testing locally on a new project, but I'll try to do it and work on this issue. Update: |
Hello @rafaelgalani 👋 and thanks for the help!
Yes, even upgrading I managed to fix it by downgrading to NPM 6, install the latest version of
Thanks for sharing it! Looks like NPM 7 introduced some critical changes, probably we should hold back using this version until these issues are solved. |
It'd be great to report back your findings to the upstream issues you referenced to increase the chances it gets resolved pretty quickly. |
This issue will be addressed with the following PRs:
Here is the status of the different issues found so far: CI failures due to not having access to some repositories ✅This has been fixed in NPM version Dependencies install error 🔴The original error has been fixed by upgrading
I've created an issue in Appium repository just in case they can fix it, although this issue is already reported in Incompatible license ✅Unfortunately in the
EDIT: The license has been added in #28968. |
According to https://www.gnu.org/licenses/license-list.en.html license of Python 2.0.1, 2.1.1, and newer versions are GPL compatible:
However, license of Python 1.6b1 through 2.0 and 2.1 are NOT compatible:
|
As far as I know Apache 2.0 license that appium uses isn't compatible with the license that Gutenberg uses but only for the purposes of code distribution. It's fine to use less permissive licenses for development. The question is whether we should add Python 2.0 to the list of exceptions. |
I asked for confirmation regarding the license in the WordPress Slack in the #core channel (link requires registration at https://make.wordpress.org/chat/): https://wordpress.slack.com/archives/C02RQBWTW/p1612944016311700 |
Thank you very much @gziolo for checking this! I'll wait for the confirmation from WordPress Slack in the #core channel. |
While I was testing the I'm a bit concerned about the potential break changes that NPM 7 could introduce, I checked the changes from the release post and looks like that apart from the use of I'd appreciate if someone else could take a look just in case I'm missing something, thanks! |
Regarding the error when installing the dependencies, I saw that the issue in |
Thanks for researching this, @gziolo! We should maybe try and bring this up with |
I'll file an issue against |
My bet is that it should be acceptable to add this license to the allowed list. |
|
Awesome, thanks a lot!
Yeah, given the obstacles we've encountered so far, I think there's certainly potential for breakage caused by NPM 7. My main strategy here would be to de-risk the upgrade as much as possible (as discussed earlier): Get all the required fixes (such as #28890) merged before we attempt the actual upgrade -- which we can then isolate in a small PR, and if necessary revert.
I'm a bit busy with other things currently, but I'll try to give it a look later! |
IMO: Totally not worth bothering with a fork (and later going back to using the 'original' project), given that that date is less than two weeks from now. |
Thanks @ockham for creating the issue on
I agree, for now let's put it on hold until they release the fix. |
Can we pin npm 6 in the repo until it works with npm 7? Well, I'm not sure how much work it would be and how we could let contributors know so they avoid all the hassle. Just an idea to consider if that would be a quick change. |
Do you mean to update the NPM version on the |
That might be a good stop-gap fix for the time being. |
If it works then sure 😃 |
Ok, I'll create a quick PR with that change. |
Appium suggested downgrading to npm 6 (as noted earlier in this thread) by using |
I've just created the PR with the change. I've tested locally and works fine. |
👋 Looks like the EDIT: Sorry, I pointed the wrong NPM version, the version that most likely will be included is |
Great! I'll try rebasing #29097. |
@ockham sorry for the mistake on my previous comment, the NPM version which looks like it will be included is |
There's a new release of npm ( Test resultschmod issue produced by the Appium dependency 🟢Fortunately this is already fixed in the new npm version but new problems have arise. Check license script fails 🔴Not sure why but running the command I tried to run
Dependencies installation fails on MacOS machine 🔴Now the jobs executed on MacOS machines fail after installing the latest npm version and running
I tried to re-run the jobs multiple times just in case was a network issue but keeps throwing the error. Scripts that use
|
Thanks a lot for this latest report, @fluiddot! How about the following strategy:
|
cc/ @griffbrad @jsnajdr @sarayourfriend @scinos @flootr @tyxla -- Do any of the above issues ring a bell? Any other experience you can share from attempting to upgrade Calypso to npm 7? Any recommendations with regard to strategy? 😊 |
Thanks @ockham for putting this together and planning the strategy!
No problem, we can use any of both. Regarding my PR, I added a step for running the command
I totally agree, I'll file the different issues next week to address them individually. In fact since the problem with Appium looks already solved in the latest npm version we could close this issue.
Good idea! |
👋 I've just created the separated tasks as described in the previous comment:
If you agree I'm going to close this issue since the problem with Appium looks already solved in the latest npm version. We can continue discussing the issues related to npm version 7 in the issues listed above. |
Awesome, thanks a lot!
Yes, I think that's a great plan 👍 |
Description
Running
npm install
with NPM version7.5.2
produces the following error:Step-by-step reproduction instructions
7.5.2
(with NVM:nvm install --latest-npm
)npm install
Expected behaviour
The dependencies installation should succeed.
Actual behaviour
The dependencies install fails with the error described above.
Screenshots or screen recording (optional)
N/A
WordPress information
Device information
The text was updated successfully, but these errors were encountered: