Skip to content
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

[Bug]: package-lock.json not up to date with specified node version #2194

Open
1 task done
doug-s-nava opened this issue Sep 23, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@doug-s-nava
Copy link
Collaborator

Contact Details

[email protected]

What happened?

The package.json specifies:

  "engines": {
    "node": ">=20.0.0"
  },

However, when running an npm install with node version 20.17.0, the following messages are received, and a newly formatted package-lock.json file is generated:

npm warn old lockfile The package-lock.json file was created with an old version of npm,
npm warn old lockfile so supplemental metadata must be fetched from the registry.
npm warn old lockfile
npm warn old lockfile This is a one-time fix-up, please be patient...

Most importantly, the lockfileVersion of the package-lock changes from 1 to 3 as a result of this change, and the json shape of the file changes significantly.

The likely fix is to ensure that all users are ready to move to node > v 20 and then check in the new package-lock.

Steps to reproduce the behavior

  1. nvm install 20
  2. nvm use 20
  3. npm install
  4. git diff
  5. VALIDATE: a large diff in the package-lock.json

Priority

medium (please fix soon)

Relevant log output

-> npm install

...

npm warn old lockfile The package-lock.json file was created with an old version of npm,
npm warn old lockfile so supplemental metadata must be fetched from the registry.
npm warn old lockfile
npm warn old lockfile This is a one-time fix-up, please be patient...

...

Screenshots and additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@doug-s-nava doug-s-nava added the bug Something isn't working label Sep 23, 2024
@doug-s-nava doug-s-nava mentioned this issue Sep 23, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Icebox
Development

No branches or pull requests

1 participant