| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,23 @@ | |||
| 1 | + ## v7.5.2 (2021-02-02 | ||
| 2 | + | ||
| 3 | + ### BUG FIXES | ||
| 4 | + | ||
| 5 | + * [`37613e4e6`](https://github.com/npm/cli/commit/37613e4e686e4891210acaabc9c23f41456eda3f) | ||
| 6 | + [#2395](https://github.com/npm/cli/issues/2395) | ||
| 7 | + [#2329](https://github.com/npm/cli/issues/2329) | ||
| 8 | + fix(exec): use latest version when possible | ||
| 9 | + ([@wraithgar](https://github.com/wraithgar)) | ||
| 10 | + * [`567c9bd03`](https://github.com/npm/cli/commit/567c9bd03a7669111fbba6eb6d1f12ed7cad5a1b) | ||
| 11 | + fix(lib/npm): do not clobber config.execPath | ||
| 12 | + ([@wraithgar](https://github.com/wraithgar)) | ||
| 13 | + | ||
| 14 | + ### DEPENDENCIES | ||
| 15 | + | ||
| 16 | + * [`643709706`](https://github.com/npm/cli/commit/64370970653af5c8d7a2be2c2144e355aa6431b0) | ||
| 17 | + `@npmcli/config@1.2.9` ([@isaacs](https://github.com/isaacs)) | ||
| 18 | + * [`4c6be4a`](https://github.com/npm/config/commit/4c6be4a66a3e89ae607e08172b8543b588a95fb5) Restore npm v6 behavior with `INIT_CWD` | ||
| 19 | + * [`bbebc66`](https://github.com/npm/config/commit/bbebc668888f71dba57959682364b6ff26ff4fac) Do not set the `PREFIX` environment variable | ||
| 20 | + | ||
| 1 | 21 | ## v7.5.1 (2021-02-01 | |
| 2 | 22 | ||
| 3 | 23 | ### BUG FIXES | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -159,7 +159,7 @@ <h3 id="description">Description</h3> | |||
| 159 | 159 | the results to only the paths to the packages named. Note that nested | |
| 160 | 160 | packages will <em>also</em> show the paths to the specified packages. For | |
| 161 | 161 | example, running <code>npm ls promzard</code> in npm’s source tree will show:</p> | |
| 162 | - <pre lang="bash"><code>npm@7.5.1 /path/to/npm | ||
| 162 | + <pre lang="bash"><code>npm@7.5.2 /path/to/npm | ||
| 163 | 163 | └─┬ init-package-json@0.0.4 | |
| 164 | 164 | └── promzard@0.1.5 | |
| 165 | 165 | </code></pre> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -148,7 +148,7 @@ <h2 id="table-of-contents">Table of contents</h2> | |||
| 148 | 148 | <pre lang="bash"><code>npm <command> [args] | |
| 149 | 149 | </code></pre> | |
| 150 | 150 | <h3 id="version">Version</h3> | |
| 151 | - <p>7.5.1</p> | ||
| 151 | + <p>7.5.2</p> | ||
| 152 | 152 | <h3 id="description">Description</h3> | |
| 153 | 153 | <p>npm is the package manager for the Node JavaScript platform. It puts | |
| 154 | 154 | modules in place so that node can find them, and manages dependency | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -169,8 +169,12 @@ const exec = async args => { | |||
| 169 | 169 | return await readPackageJson(pj) | |
| 170 | 170 | } catch (er) {} | |
| 171 | 171 | } | |
| 172 | + // Force preferOnline to true so we are making sure to pull in the latest | ||
| 173 | + // This is especially useful if the user didn't give us a version, and | ||
| 174 | + // they expect to be running @latest | ||
| 172 | 175 | return await pacote.manifest(p, { | |
| 173 | 176 | ...npm.flatOptions, | |
| 177 | + preferOnline: true, | ||
| 174 | 178 | }) | |
| 175 | 179 | })) | |
| 176 | 180 | ||
@@ -193,9 +197,13 @@ const exec = async args => { | |||
| 193 | 197 | const arb = new Arborist({ ...npm.flatOptions, path: installDir }) | |
| 194 | 198 | const tree = await arb.loadActual() | |
| 195 | 199 | ||
| 196 | - // any that don't match the manifest we have, install them | ||
| 197 | - // add installDir/node_modules/.bin to pathArr | ||
| 198 | - const add = manis.filter(mani => manifestMissing(tree, mani)) | ||
| 200 | + // at this point, we have to ensure that we get the exact same | ||
| 201 | + // version, because it's something that has only ever been installed | ||
| 202 | + // by npm exec in the cache install directory | ||
| 203 | + const add = manis.filter(mani => manifestMissing(tree, { | ||
| 204 | + ...mani, | ||
| 205 | + _from: `${mani.name}@${mani.version}`, | ||
| 206 | + })) | ||
| 199 | 207 | .map(mani => mani._from) | |
| 200 | 208 | .sort((a, b) => a.localeCompare(b)) | |
| 201 | 209 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -173,8 +173,8 @@ const npm = module.exports = new class extends EventEmitter { | |||
| 173 | 173 | if (node && node.toUpperCase() !== process.execPath.toUpperCase()) { | |
| 174 | 174 | log.verbose('node symlink', node) | |
| 175 | 175 | process.execPath = node | |
| 176 | + this.config.execPath = node | ||
| 176 | 177 | } | |
| 177 | - this.config.execPath = node | ||
| 178 | 178 | ||
| 179 | 179 | await this.config.load() | |
| 180 | 180 | this.argv = this.config.parsedArgv.remain | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,7 +26,7 @@ example, running \fBnpm ls promzard\fP in npm's source tree will show: | |||
| 26 | 26 | .P | |
| 27 | 27 | .RS 2 | |
| 28 | 28 | .nf | |
| 29 | - npm@7\.5\.1 /path/to/npm | ||
| 29 | + npm@7\.5\.2 /path/to/npm | ||
| 30 | 30 | └─┬ init\-package\-json@0\.0\.4 | |
| 31 | 31 | └── promzard@0\.1\.5 | |
| 32 | 32 | .fi | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,7 @@ npm <command> [args] | |||
| 10 | 10 | .RE | |
| 11 | 11 | .SS Version | |
| 12 | 12 | .P | |
| 13 | - 7\.5\.1 | ||
| 13 | + 7\.5\.2 | ||
| 14 | 14 | .SS Description | |
| 15 | 15 | .P | |
| 16 | 16 | npm is the package manager for the Node JavaScript platform\. It puts | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | { | |
| 2 | - "version": "7.5.1", | ||
| 2 | + "version": "7.5.2", | ||
| 3 | 3 | "name": "npm", | |
| 4 | 4 | "description": "a package manager for JavaScript", | |
| 5 | 5 | "keywords": [ | |
@@ -44,7 +44,7 @@ | |||
| 44 | 44 | "dependencies": { | |
| 45 | 45 | "@npmcli/arborist": "^2.1.1", | |
| 46 | 46 | "@npmcli/ci-detect": "^1.2.0", | |
| 47 | - "@npmcli/config": "^1.2.8", | ||
| 47 | + "@npmcli/config": "^1.2.9", | ||
| 48 | 48 | "@npmcli/run-script": "^1.8.1", | |
| 49 | 49 | "abbrev": "~1.1.1", | |
| 50 | 50 | "ansicolors": "~0.3.2", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments