| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 768e1a2 commit b714b5d
120 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,7 +50,7 @@ npm <command> | |||
| 50 | 50 | * [**Documentation**](https://docs.npmjs.com/) - Official docs & how-tos for all things **npm** | |
| 51 | 51 | * Note: you can also search docs locally with `npm help-search <query>` | |
| 52 | 52 | * [**Bug Tracker**](https://github.com/npm/cli/issues) - Search or submit bugs against the CLI | |
| 53 | - * [**Roadmap**](https://github.com/npm/roadmap) - Track & follow along with our public roadmap | ||
| 53 | + * [**Roadmap**](https://github.com/orgs/github/projects/4247/views/1?filterQuery=npm) - Track & follow along with our public roadmap | ||
| 54 | 54 | * [**Feedback**](https://github.com/npm/feedback) - Contribute ideas & discussion around the npm registry, website & CLI | |
| 55 | 55 | * [**RFCs**](https://github.com/npm/rfcs) - Contribute ideas & specifications for the API/design of the npm CLI | |
| 56 | 56 | * [**Service Status**](https://status.npmjs.org/) - Monitor the current status & see incident reports for the website & registry | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,6 +34,8 @@ Print the folder where npm will install executables. | |||
| 34 | 34 | ||
| 35 | 35 | * Default: false | |
| 36 | 36 | * Type: Boolean | |
| 37 | + * DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global` | ||
| 38 | + instead. | ||
| 37 | 39 | ||
| 38 | 40 | Operates in "global" mode, so that packages are installed into the `prefix` | |
| 39 | 41 | folder instead of the current working directory. See | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | --- | |
| 2 | 2 | title: npm-ci | |
| 3 | 3 | section: 1 | |
| 4 | - description: Install a project with a clean slate | ||
| 4 | + description: Clean install a project | ||
| 5 | 5 | --- | |
| 6 | 6 | ||
| 7 | 7 | ### Synopsis | |
@@ -28,12 +28,7 @@ it's meant to be used in automated environments such as test platforms, | |||
| 28 | 28 | continuous integration, and deployment -- or any situation where you want | |
| 29 | 29 | to make sure you're doing a clean install of your dependencies. | |
| 30 | 30 | ||
| 31 | - `npm ci` will be significantly faster when: | ||
| 32 | - | ||
| 33 | - - There is a `package-lock.json` or `npm-shrinkwrap.json` file. | ||
| 34 | - - The `node_modules` folder is missing or empty. | ||
| 35 | - | ||
| 36 | - In short, the main differences between using `npm install` and `npm ci` are: | ||
| 31 | + The main differences between using `npm install` and `npm ci` are: | ||
| 37 | 32 | ||
| 38 | 33 | * The project **must** have an existing `package-lock.json` or | |
| 39 | 34 | `npm-shrinkwrap.json`. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -124,6 +124,8 @@ Not supported by all npm commands. | |||
| 124 | 124 | ||
| 125 | 125 | * Default: false | |
| 126 | 126 | * Type: Boolean | |
| 127 | + * DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global` | ||
| 128 | + instead. | ||
| 127 | 129 | ||
| 128 | 130 | Operates in "global" mode, so that packages are installed into the `prefix` | |
| 129 | 131 | folder instead of the current working directory. See | |
@@ -156,6 +158,15 @@ The command to run for `npm edit` and `npm config edit`. | |||
| 156 | 158 | ||
| 157 | 159 | When passed to `npm config` this refers to which config file to use. | |
| 158 | 160 | ||
| 161 | + When set to "global" mode, packages are installed into the `prefix` folder | ||
| 162 | + instead of the current working directory. See | ||
| 163 | + [folders](/configuring-npm/folders) for more on the differences in behavior. | ||
| 164 | + | ||
| 165 | + * packages are installed into the `{prefix}/lib/node_modules` folder, instead | ||
| 166 | + of the current working directory. | ||
| 167 | + * bin files are linked to `{prefix}/bin` | ||
| 168 | + * man pages are linked to `{prefix}/share/man` | ||
| 169 | + | ||
| 159 | 170 | <!-- automatically generated, do not edit manually --> | |
| 160 | 171 | <!-- see lib/utils/config/definitions.js --> | |
| 161 | 172 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -248,6 +248,8 @@ Treat all files as text in `npm diff`. | |||
| 248 | 248 | ||
| 249 | 249 | * Default: false | |
| 250 | 250 | * Type: Boolean | |
| 251 | + * DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global` | ||
| 252 | + instead. | ||
| 251 | 253 | ||
| 252 | 254 | Operates in "global" mode, so that packages are installed into the `prefix` | |
| 253 | 255 | folder instead of the current working directory. See | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -70,6 +70,8 @@ rather than using npm's default semver range operator. | |||
| 70 | 70 | ||
| 71 | 71 | * Default: false | |
| 72 | 72 | * Type: Boolean | |
| 73 | + * DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global` | ||
| 74 | + instead. | ||
| 73 | 75 | ||
| 74 | 76 | Operates in "global" mode, so that packages are installed into the `prefix` | |
| 75 | 77 | folder instead of the current working directory. See | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -460,6 +460,8 @@ rather than using npm's default semver range operator. | |||
| 460 | 460 | ||
| 461 | 461 | * Default: false | |
| 462 | 462 | * Type: Boolean | |
| 463 | + * DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global` | ||
| 464 | + instead. | ||
| 463 | 465 | ||
| 464 | 466 | Operates in "global" mode, so that packages are installed into the `prefix` | |
| 465 | 467 | folder instead of the current working directory. See | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -153,6 +153,8 @@ rather than using npm's default semver range operator. | |||
| 153 | 153 | ||
| 154 | 154 | * Default: false | |
| 155 | 155 | * Type: Boolean | |
| 156 | + * DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global` | ||
| 157 | + instead. | ||
| 156 | 158 | ||
| 157 | 159 | Operates in "global" mode, so that packages are installed into the `prefix` | |
| 158 | 160 | folder instead of the current working directory. See | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -137,6 +137,8 @@ Output parseable results from commands that write to standard output. For | |||
| 137 | 137 | ||
| 138 | 138 | * Default: false | |
| 139 | 139 | * Type: Boolean | |
| 140 | + * DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global` | ||
| 141 | + instead. | ||
| 140 | 142 | ||
| 141 | 143 | Operates in "global" mode, so that packages are installed into the `prefix` | |
| 142 | 144 | folder instead of the current working directory. See | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -150,6 +150,8 @@ Output parseable results from commands that write to standard output. For | |||
| 150 | 150 | ||
| 151 | 151 | * Default: false | |
| 152 | 152 | * Type: Boolean | |
| 153 | + * DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global` | ||
| 154 | + instead. | ||
| 153 | 155 | ||
| 154 | 156 | Operates in "global" mode, so that packages are installed into the `prefix` | |
| 155 | 157 | folder instead of the current working directory. See | |
| Back | FazBrowse Home | New Git URL |
0 commit comments