You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BREAKING CHANGE: `npm shrinkwrap` is removed, the `shrinkwrap` config alias is removed, and `npm-shrinkwrap.json` is no longer loaded or honored at the project root or from inside dependency tarballs. Rename project-root `npm-shrinkwrap.json` to `package-lock.json`; use `bundleDependencies` if you need to ship a locked dependency tree.
Copy file name to clipboardExpand all lines: docs/lib/content/commands/npm-audit.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ This option does not filter the report output, it simply changes the command's f
25
25
26
26
### Package lock
27
27
28
-
By default npm requires a package-lock or shrinkwrap in order to run the audit.
28
+
By default npm requires a package-lock in order to run the audit.
29
29
You can bypass the package lock with `--no-package-lock` but be aware the results may be different with every run, since npm will re-build the dependency tree each time.
Copy file name to clipboardExpand all lines: docs/lib/content/commands/npm-install.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,13 +11,12 @@ description: Install a package
11
11
### Description
12
12
13
13
This command installs a package and any packages that it depends on.
14
-
If the package has a package-lock, or an npm shrinkwrap file, or a yarn lock file, the installation of dependencies will be driven by that, respecting the following order of precedence:
14
+
If the package has a package-lock or a yarn lock file, the installation of dependencies will be driven by that, respecting the following order of precedence:
15
15
16
-
*`npm-shrinkwrap.json`
17
16
*`package-lock.json`
18
17
*`yarn.lock`
19
18
20
-
See [package-lock.json](/configuring-npm/package-lock-json) and [`npm shrinkwrap`](/commands/npm-shrinkwrap).
19
+
See [package-lock.json](/configuring-npm/package-lock-json).
21
20
22
21
#### How `npm install` uses `package-lock.json`
23
22
@@ -136,7 +135,7 @@ Even if you never publish your package, you can still get a lot of benefits of u
136
135
137
136
* `-B, --save-bundle`: Saved dependencies will also be added to your `bundleDependencies` list.
138
137
139
-
Further, if you have an `npm-shrinkwrap.json` or `package-lock.json` then it will be updated as well.
138
+
Further, if you have a `package-lock.json` then it will be updated as well.
140
139
141
140
`<scope>` is optional.
142
141
The package will be downloaded from the registry associated with the specified scope.
@@ -402,6 +401,5 @@ See [folders](/configuring-npm/folders) for a more detailed description of the s
If package-lock-only is enabled, only the information in the package lock (or shrinkwrap) is loaded.
155
+
If package-lock-only is enabled, only the information in the package lock is loaded.
156
156
This means that information from the package.json files of your dependencies will not be included in the result set (e.g. description, homepage, engines).
Copy file name to clipboardExpand all lines: docs/lib/content/commands/npm-version.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,7 @@ description: Bump a package version
14
14
15
15
### Description
16
16
17
-
Run this in a package directory to bump the version and write the new data back to `package.json`, `package-lock.json`, and, if present,
18
-
`npm-shrinkwrap.json`.
17
+
Run this in a package directory to bump the version and write the new data back to `package.json` and `package-lock.json`.
19
18
20
19
The `newversion` argument should be a valid semver string, a valid second argument to [semver.inc](https://github.com/npm/node-semver#functions) (one of `patch`, `minor`, `major`, `prepatch`, `preminor`, `premajor`, `prerelease`), or `from-git`.
21
20
In the second case, the existing version will be incremented by 1 in the specified field.
0 commit comments