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
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,6 @@ This process can, of course, be done manually. This may be useful for editing it
147
147
148
148
1. Review the configuration
149
149
The `cli/releases.json` configures how the CLI documentation is included. It is an array of documentation versions, each having the following configuration:
150
-
151
150
-`id`: A short identifier for the documentation version, eg `v6` or `v7`. This corresponds to a directory containing a version of the CLI repository (using a submodule). This will also be used as the output folder in the content.
152
151
-`branch`: The branch name for the version. This will be used to fetch the latest version of the documentation from GitHub.
153
152
-`spec`: The registry spec for the version. This will be used to fetch the latest version in that range from the registry.
Copy file name to clipboardExpand all lines: content/cli/v10/commands/npm-install.mdx
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,6 @@ Even if you never publish your package, you can still get a lot of benefits of u
79
79
Install a package that is sitting on the filesystem. Note: if you just want to link a dev directory into your npm root, you can do this more easily by using [`npm link`](/cli/v10/commands/npm-link).
80
80
81
81
Tarball requirements:
82
-
83
82
- The filename _must_ use `.tar`, `.tar.gz`, or `.tgz` as the extension.
84
83
- The package contents should reside in a subfolder inside the tarball (usually it is called `package/`). npm strips one directory layer when installing the package (an equivalent of `tar x --strip-components=1` is run).
85
84
- The package must contain a `package.json` file with `name` and `version` properties.
@@ -113,7 +112,6 @@ Even if you never publish your package, you can still get a lot of benefits of u
113
112
```
114
113
115
114
`npm install` saves any specified packages into `dependencies` by default. Additionally, you can control where and how they get saved with some additional flags:
116
-
117
115
-`-P, --save-prod`: Package will appear in your `dependencies`. This is the default unless `-D` or `-O` are present.
118
116
119
117
-`-D, --save-dev`: Package will appear in your `devDependencies`.
@@ -125,7 +123,6 @@ Even if you never publish your package, you can still get a lot of benefits of u
125
123
-`--no-save`: Prevents saving to `dependencies`.
126
124
127
125
When using any of the above options to save dependencies to your package.json, there are two additional, optional flags:
128
-
129
126
-`-E, --save-exact`: Saved dependencies will be configured with an exact version rather than using npm's default semver range operator.
130
127
131
128
-`-B, --save-bundle`: Saved dependencies will also be added to your `bundleDependencies` list.
@@ -213,7 +210,6 @@ Even if you never publish your package, you can still get a lot of benefits of u
213
210
If the package being installed contains a `prepare` script, its `dependencies` and `devDependencies` will be installed, and the prepare script will be run, before the package is packaged and installed.
214
211
215
212
The following git environment variables are recognized by npm and will be added to the environment when running git:
-`npm profile set password`: Change your password. This is interactive, you'll be prompted for your current password and a new password. You'll also be prompted for an OTP if you have two-factor authentication enabled.
-`auth-only`: Require an OTP when logging in or making changes to your account's authentication. The OTP will be required on both the website and the command line.
59
58
-`auth-and-writes`: Requires an OTP at all the times `auth-only` does, and also requires one when publishing a module, setting the `latest` dist-tag, or changing access via `npm access` and `npm owner`.
Copy file name to clipboardExpand all lines: content/cli/v6/commands/npm-install.mdx
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,6 @@ Even if you never publish your package, you can still get a lot of benefits of u
75
75
Install a package that is sitting on the filesystem. Note: if you just want to link a dev directory into your npm root, you can do this more easily by using `npm link`.
76
76
77
77
Tarball requirements:
78
-
79
78
- The filename _must_ use `.tar`, `.tar.gz`, or `.tgz` as the extension.
80
79
- The package contents should reside in a subfolder inside the tarball (usually it is called `package/`). npm strips one directory layer when installing the package (an equivalent of `tar x --strip-components=1` is run).
81
80
- The package must contain a `package.json` file with `name` and `version` properties.
@@ -114,7 +113,6 @@ Even if you never publish your package, you can still get a lot of benefits of u
114
113
npm install npa@npm:npm-package-arg
115
114
116
115
`npm install` saves any specified packages into `dependencies` by default. Additionally, you can control where and how they get saved with some additional flags:
117
-
118
116
-`-P, --save-prod`: Package will appear in your `dependencies`. This is the default unless `-D` or `-O` are present.
119
117
120
118
-`-D, --save-dev`: Package will appear in your `devDependencies`.
@@ -124,7 +122,6 @@ Even if you never publish your package, you can still get a lot of benefits of u
124
122
-`--no-save`: Prevents saving to `dependencies`.
125
123
126
124
When using any of the above options to save dependencies to your package.json, there are two additional, optional flags:
127
-
128
125
-`-E, --save-exact`: Saved dependencies will be configured with an exact version rather than using npm's default semver range operator.
129
126
130
127
-`-B, --save-bundle`: Saved dependencies will also be added to your `bundleDependencies` list.
@@ -201,7 +198,6 @@ Even if you never publish your package, you can still get a lot of benefits of u
201
198
If the package being installed contains a `prepare` script, its `dependencies` and `devDependencies` will be installed, and the prepare script will be run, before the package is packaged and installed.
202
199
203
200
The following git environment variables are recognized by npm and will be added to the environment when running git:
Copy file name to clipboardExpand all lines: content/cli/v6/commands/npm-profile.mdx
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,6 @@ Change your profile information on the registry. This not be available if you're
64
64
-`npm profile set password`: Change your password. This is interactive, you'll be prompted for your current password and a new password. You'll also be prompted for an OTP if you have two-factor authentication enabled.
-`auth-only`: Require an OTP when logging in or making changes to your account's authentication. The OTP will be required on both the website and the command line.
69
68
-`auth-and-writes`: Requires an OTP at all the times `auth-only` does, and also requires one when publishing a module, setting the `latest` dist-tag, or changing access via `npm access` and `npm owner`.
Copy file name to clipboardExpand all lines: content/cli/v7/commands/npm-install.mdx
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,6 @@ Even if you never publish your package, you can still get a lot of benefits of u
81
81
Install a package that is sitting on the filesystem. Note: if you just want to link a dev directory into your npm root, you can do this more easily by using [`npm link`](/cli/v7/commands/npm-link).
82
82
83
83
Tarball requirements:
84
-
85
84
- The filename _must_ use `.tar`, `.tar.gz`, or `.tgz` as the extension.
86
85
- The package contents should reside in a subfolder inside the tarball (usually it is called `package/`). npm strips one directory layer when installing the package (an equivalent of `tar x --strip-components=1` is run).
87
86
- The package must contain a `package.json` file with `name` and `version` properties.
@@ -115,7 +114,6 @@ Even if you never publish your package, you can still get a lot of benefits of u
115
114
```
116
115
117
116
`npm install` saves any specified packages into `dependencies` by default. Additionally, you can control where and how they get saved with some additional flags:
118
-
119
117
-`-P, --save-prod`: Package will appear in your `dependencies`. This is the default unless `-D` or `-O` are present.
120
118
121
119
-`-D, --save-dev`: Package will appear in your `devDependencies`.
@@ -125,7 +123,6 @@ Even if you never publish your package, you can still get a lot of benefits of u
125
123
-`--no-save`: Prevents saving to `dependencies`.
126
124
127
125
When using any of the above options to save dependencies to your package.json, there are two additional, optional flags:
128
-
129
126
-`-E, --save-exact`: Saved dependencies will be configured with an exact version rather than using npm's default semver range operator.
130
127
131
128
-`-B, --save-bundle`: Saved dependencies will also be added to your `bundleDependencies` list.
@@ -215,7 +212,6 @@ Even if you never publish your package, you can still get a lot of benefits of u
215
212
If the package being installed contains a `prepare` script, its `dependencies` and `devDependencies` will be installed, and the prepare script will be run, before the package is packaged and installed.
216
213
217
214
The following git environment variables are recognized by npm and will be added to the environment when running git:
Copy file name to clipboardExpand all lines: content/cli/v7/commands/npm-profile.mdx
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,6 @@ Change your profile information on the registry. Note that this command depends
66
66
-`npm profile set password`: Change your password. This is interactive, you'll be prompted for your current password and a new password. You'll also be prompted for an OTP if you have two-factor authentication enabled.
-`auth-only`: Require an OTP when logging in or making changes to your account's authentication. The OTP will be required on both the website and the command line.
71
70
-`auth-and-writes`: Requires an OTP at all the times `auth-only` does, and also requires one when publishing a module, setting the `latest` dist-tag, or changing access via `npm access` and `npm owner`.
- Remove unnecessary tree walk for workspace projects
1711
1707
- Install workspaces on update:true
1712
1708
1713
1709
-[`d6b134fd9`](https://github.com/npm/cli/commit/d6b134fd9005d911343831270615f80dfead7e3d)[#1738](https://github.com/npm/cli/pull/1738)[#1734](https://github.com/npm/cli/pull/1734) fix package spec parsing during cache add process ([@mjeanroy](https://github.com/mjeanroy))
- Support `.git` files, so that git worktrees are respected
1722
1716
1723
1717
## v7.0.0-beta.8 (2020-09-01)
@@ -1743,27 +1737,21 @@ redirect_from:
1743
1737
-[`5cb9a1d4d`](https://github.com/npm/cli/commit/5cb9a1d4d985aaa8e988c51fe5ae7f7ed3602811)[#1688](https://github.com/npm/cli/pull/1688) use `@npmcli/config` for configuration ([@isaacs](https://github.com/isaacs))
- Load root project `package.json` when running loadVirtual.
1768
1756
- Fetch metadata from registry when loading tree from outdated package-lock.json file. This avoids a situation where a lockfile or shrinkwrap from npm v5 would result in deleting dependencies on install.
1769
1757
- Preserve `package.json` and `package-lock.json` formatting in all places where these files are written.
0 commit comments