-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 referenced from a GitHub repository can't be installed using npm 8 #40540
Comments
So I took some time to investigate this as I wanted to try Appium 2 and it requires npm It looks like the I think by the time this effort was initiated, it didn't have the updated version of I just tried the We do need to change the URLs that point to the GitHub repo directly for There's an issue with the generation of the React Native bundle that will be solved with the I created a draft PR with the changes here, there are two tests that failed Hopefully, the React Native Upgrade will land soon so we can finally update Node and npm. |
Thanks for the update and the information @geriux 🙇 !
Great news that with the new NPM version this is no longer an issue.
To be honest, I think we could remove the
🎊
Interesting, probably we need to change something else. I checked the original PR where we tried to upgrade the NPM version, but couldn't find clues related to this issue. |
I agree, we should do that when we can. For now, I've created a PR to update those two packages to unblock upgrading to NPM 8, now that the React Native Upgrade is merged. I've assigned it to you as a reviewer 😃 |
Using changes from #46422, I tried installing the dependencies using npm
I'm going to close the issue and open a new one with this information. UPDATE: Follow-up of the error in #46443. |
Yeah that didn't happen a few weeks ago when I tried 😅 , I think it's related to the React 18 upgrade. Thanks for creating a follow-up ticket for that! |
Description
Related to #36041 (comment).
Installing dependencies via
npm install
using npm 8 fails with the following error:This makes the upgrade of the
package-lock.json
file to format version 2 fail. However, I managed to fix it by doing the following steps:Click here to display patch
npm install
.Click here to display patch
nvm use
.npm install
.npm install
again.However, although this fixes the dependencies installation, the CI jobs are failing with the following error:
Extracted from this CI job:
Looks like the CI instances can't check out the GitHub repositories due to permissions issues. I identified that this is only happening for the following dependencies that use the
git+https
protocol:gutenberg/packages/react-native-editor/package.json
Line 57 in e7fbb88
gutenberg/packages/react-native-editor/package.json
Line 62 in e7fbb88
For testing purposes, I removed these packages to see if the rest of the forked repositories dependencies would work (reference). But I spotted a different error related to linting and TypeScript. I'm not sure if this error is caused by any of React Native dependencies or other reasons not related to RN 🤔 .
Step-by-step reproduction instructions
npm install
.Expected behaviour
All dependencies should be installed with npm 8.
Actual behaviour
Some dependencies can't be installed with npm 8.
Screenshots or screen recording (optional)
N/A
WordPress information
Device information
The text was updated successfully, but these errors were encountered: