diff --git a/node_modules/pacote/CHANGELOG.md b/node_modules/pacote/CHANGELOG.md
index 0fba39b95d7a2..c127fb850078b 100644
--- a/node_modules/pacote/CHANGELOG.md
+++ b/node_modules/pacote/CHANGELOG.md
@@ -2,6 +2,16 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
+
+## [9.5.7](https://github.com/npm/pacote/compare/v9.5.6...v9.5.7) (2019-08-19)
+
+
+### Bug Fixes
+
+* do not try to chown if not running as root ([bbc5da3](https://github.com/npm/pacote/commit/bbc5da3))
+
+
+
## [9.5.6](https://github.com/npm/pacote/compare/v9.5.5...v9.5.6) (2019-08-15)
diff --git a/node_modules/pacote/extract.js b/node_modules/pacote/extract.js
index 24fdbf02da274..6ed0b18aaae1a 100644
--- a/node_modules/pacote/extract.js
+++ b/node_modules/pacote/extract.js
@@ -74,7 +74,8 @@ function tryExtract (spec, tarStream, dest, opts) {
.then(() => mkdirp(dest))
.then((made) => {
// respect the current ownership of unpack targets
- if (typeof selfOwner.uid === 'number' &&
+ // but don't try to chown if we're not root.
+ if (selfOwner.uid === 0 &&
typeof selfOwner.gid === 'number' &&
selfOwner.uid !== opts.uid && selfOwner.gid !== opts.gid) {
return chown(made || dest, opts.uid, opts.gid)
diff --git a/node_modules/pacote/package.json b/node_modules/pacote/package.json
index 342970bb21439..d4456f158738b 100644
--- a/node_modules/pacote/package.json
+++ b/node_modules/pacote/package.json
@@ -1,8 +1,8 @@
{
- "_from": "pacote@9.5.6",
- "_id": "pacote@9.5.6",
+ "_from": "pacote@9.5.7",
+ "_id": "pacote@9.5.7",
"_inBundle": false,
- "_integrity": "sha512-WyfTZU04KGx9h+ZD37vSmCK0KZMAPp2XTVhWdue7/1bAxBYM3YtyBGz1CNgiOvl3u5TYRT8RG4duhyXxQvaIxw==",
+ "_integrity": "sha512-hh6TCqfblM+UEwUIyQrCIlLf7i0LrlYx2ovsa5yXPWWiXSeRpQVwVTD+QfYrBoSGIbdwtN6YP9AEro/kz5F4Mw==",
"_location": "/pacote",
"_phantomChildren": {
"safe-buffer": "5.1.2",
@@ -11,12 +11,12 @@
"_requested": {
"type": "version",
"registry": true,
- "raw": "pacote@9.5.6",
+ "raw": "pacote@9.5.7",
"name": "pacote",
"escapedName": "pacote",
- "rawSpec": "9.5.6",
+ "rawSpec": "9.5.7",
"saveSpec": null,
- "fetchSpec": "9.5.6"
+ "fetchSpec": "9.5.7"
},
"_requiredBy": [
"#USER",
@@ -24,9 +24,9 @@
"/libcipm",
"/libnpm"
],
- "_resolved": "https://registry.npmjs.org/pacote/-/pacote-9.5.6.tgz",
- "_shasum": "1f749e25d82921941cf02e58e3312053940e5ea0",
- "_spec": "pacote@9.5.6",
+ "_resolved": "https://registry.npmjs.org/pacote/-/pacote-9.5.7.tgz",
+ "_shasum": "71eed4696809bdd72ce61228b8f018eab34e21cf",
+ "_spec": "pacote@9.5.7",
"_where": "/Users/isaacs/dev/npm/cli",
"author": {
"name": "Kat Marchán",
@@ -119,5 +119,5 @@
"update-coc": "weallbehave -o . && git add CODE_OF_CONDUCT.md && git commit -m 'docs(coc): updated CODE_OF_CONDUCT.md'",
"update-contrib": "weallcontribute -o . && git add CONTRIBUTING.md && git commit -m 'docs(contributing): updated CONTRIBUTING.md'"
},
- "version": "9.5.6"
+ "version": "9.5.7"
}
diff --git a/package-lock.json b/package-lock.json
index b569680e11743..bd4af9985c58d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -4385,9 +4385,9 @@
}
},
"pacote": {
- "version": "9.5.6",
- "resolved": "https://registry.npmjs.org/pacote/-/pacote-9.5.6.tgz",
- "integrity": "sha512-WyfTZU04KGx9h+ZD37vSmCK0KZMAPp2XTVhWdue7/1bAxBYM3YtyBGz1CNgiOvl3u5TYRT8RG4duhyXxQvaIxw==",
+ "version": "9.5.7",
+ "resolved": "https://registry.npmjs.org/pacote/-/pacote-9.5.7.tgz",
+ "integrity": "sha512-hh6TCqfblM+UEwUIyQrCIlLf7i0LrlYx2ovsa5yXPWWiXSeRpQVwVTD+QfYrBoSGIbdwtN6YP9AEro/kz5F4Mw==",
"requires": {
"bluebird": "^3.5.3",
"cacache": "^12.0.2",
diff --git a/package.json b/package.json
index 417a1370bf7f6..697d4d469b2bc 100644
--- a/package.json
+++ b/package.json
@@ -110,7 +110,7 @@
"once": "~1.4.0",
"opener": "^1.5.1",
"osenv": "^0.1.5",
- "pacote": "^9.5.6",
+ "pacote": "^9.5.7",
"path-is-inside": "~1.0.2",
"promise-inflight": "~1.0.1",
"qrcode-terminal": "^0.12.0",