zjffun blog

Node, npm and npm lockfile version

更新于 写于 Nodenpmlockfile

Node.js npm npm lockfile
v21.7.1 v10.5.0 v3
v20.11.1 v10.2.4 v3
v19.9.0 v9.6.3 v3
v18.19.1 v10.2.4 v3
- - -
v17.9.1 v8.11.0 v2
v16.20.2 v8.19.4 v2
v15.14.0 v7.7.6 v2
- - -
v14.21.3 v6.14.18 v1
v13.14.0 v6.14.4 v1
v12.22.12 v6.14.16 v1
v11.15.0 v6.7.0 v1
v10.24.1 v6.14.12 v1
v9.11.2 v5.6.0 v1
v8.17.0 v6.13.4 v1
- - -
v7.10.1 v4.2.0 shrinkwrap
v6.17.1 v3.10.10 shrinkwrap
v5.12.0 v3.8.6 shrinkwrap
v4.9.1 v2.15.11 shrinkwrap
v0.12.18 v2.15.11 shrinkwrap

npm lockfile version:

No version provided: an "ancient" shrinkwrap file from a version of npm prior to npm v5.

1: The lockfile version used by npm v5 and v6.

2: The lockfile version used by npm v7 and v8. Backwards compatible to v1 lockfiles.

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

See: