Skip to content

Commit 7eede7f

Browse files
silverwinddelvh
andauthored
Upgrade to npm lockfile v3 and explicitely set it (go-gitea#23561)
`npm@8` which comes with node 16 will by default write lockfile v2 `npm@9` which comes with recent versions of node 18 and above will write lockfile v3 To avoid incorrect lockfile v2 generation on npm v8, force npm to write lockfile v3, so no matter which npm version the user has installed, the same lockfile format will be generated. References: - https://docs.npmjs.com/cli/v9/configuring-npm/package-lock-json#lockfileversion - https://nodejs.org/en/download/releases Co-authored-by: delvh <[email protected]>
1 parent d42015e commit 7eede7f

File tree

2 files changed

+114
-7363
lines changed

2 files changed

+114
-7363
lines changed

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ fund=false
33
update-notifier=false
44
package-lock=true
55
save-exact=true
6+
lockfile-version=3

0 commit comments

Comments
 (0)