Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

docs: add v9 and above for lockfile version 3 #6921

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

MikeMcC399
Copy link
Contributor

@MikeMcC399 MikeMcC399 commented Oct 23, 2023

This PR adds npm v10 "and above" after the v9 version which also uses lockfile version 3, amending the page

npm Docs > package-lock.json > File Format

The sentence now reads:

* 3: The lockfile version used by npm v9 and v10. Backwards compatible to npm v7.

  • 3: The lockfile version used by npm v9 and above. Backwards compatible to npm v7.

Node.js Reference

See https://nodejs.org/en/download/releases

  • Node.js 18 and Node.js 20 up 20.6.1 use npm v9
  • Node.js 20 starting with 20.7.0 uses npm v10
  • Node.js 21 uses npm v10

Cross-check

$ npm install npm@latest -g
$ npm -v
10.2.1

$ npm init -y
$ npm install
$ grep lockfileVersion package-lock.json
  "lockfileVersion": 3,

@MikeMcC399 MikeMcC399 marked this pull request as ready for review October 23, 2023 06:37
@MikeMcC399 MikeMcC399 requested a review from a team as a code owner October 23, 2023 06:37
@MikeMcC399 MikeMcC399 changed the title docs: add v10 for lockfile version 3 docs: add v9 and above for lockfile version 3 Oct 23, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants