-
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
Allow developing Gutenberg with NPM v7 and v8 #46400
Conversation
Size Change: 0 B Total Size: 1.32 MB ℹ️ View Unchanged
|
Note that I believe there's a temporary workaround for #46443 (comment). We can try that in this PR and see if it works? |
@kevin940726 @fluiddot feel free to modify this PR meanwhile, I can help depending on how I find time from other work. |
An update for anyone watching this ticket: Today, @carolinan, @SergeyBiryukov. @afercia and I, had a coding session where we tried to upgrade to the latest LTS versions for node/npm. |
This is actively worked on at #48950 by @kevin940726, so closing this PR. |
What?
Part of Upgrade node and npm to latest LTS versions.
Remove old restriction to use only NPM 6, thus allowing use of NPM 7 and 8.
NPM 6 came with Node.js 14 which is a bit older at this point already: https://github.com/nodejs/release#release-schedule
I'd expect to be able to use at least Node.js 16 or 18 for developing Gutenberg, and thoes come with newer NPM.
It's of course possible to keep using older NPM with newer Node.js, but that's not very convenient.
Why?
Restriction was added 2 years ago because of a bug in NPM. Issue with NPM seems to persist, but:
I don't know if the problem affects Gutenberg anymore; not quite sure how to test either! There's only one
git+https
dependency but it's for react native editor and I don't know how to test that.Issue commenter noticed the bug doesn't affect NPM 6 when using older Lockfile v1 versions (which Gutenberg currently uses). This could be the case with newer NPM versions, too?
Issue commented offered a solution that seemed to help:
How?
So far I've only removed the restriction and didn't apply the suggested
git+https://git
solution.Testing Instructions
npm ci
Testing Instructions for Keyboard
Screenshots or screencast