-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Update to the v2 npm lockfile. #3783
base: master
Are you sure you want to change the base?
Update to the v2 npm lockfile. #3783
Conversation
Shouldn't there also be a change in |
I wish, unfortunately this change just comes from having npm v7.0.0 or greater. The one thing to note is that whilst it is backwards compatible you'll want to be using npm >7 onwards to generate otherwise this will come back. Fixing the npm version in the package.json is an option here and providing an .nvmrc for ease of use. |
I think we should hold off this a bit and migrate to the NPM 7+ as part of the next major release. |
SGTM thanks! |
If the change is backward compatible, why should we hold off for the next major release? |
Signed-off-by: Jonathan Kingston <[email protected]>
My bad! I was certain that NPM 7 does not support Node 10, so that's why I wanted to postpone it. That's actually not the case, so let's consider this. Caveat is that NPM 6 is the default version in Node prior to 15 and the development installation will fail with the updated lock file. IMO it's okey as the active LTS is Node 16 which comes with NPM 8 out of the box. With the older Node versions developers can also install newer npm with |
5499915
to
2e11239
Compare
I think this raises a more general issue: establishing the minimum npm version supported. |
@devoto13 how can you tell which is the default npm version for each Node.js and the lifecycle for each npm release? |
@jginsburgn You can find the default npm version here: https://nodejs.org/en/download/releases/. I'm not sure if there is a particular npm version lifecycle defined.
The problem is that we only want to enforce it for the karma developers, not karma users, so we can't set
|
This change just updates the lockfile to the version 2 which is backwards compatible with v1.
This simplifies updating dependencies, as otherwise the author will need to downgrade to <v7 npm.