Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/cache.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/cache.js b/lib/cache.js
index 20c759a9e..ac6f10e68 100644
--- a/lib/cache.js
+++ b/lib/cache.js
@@ -215,7 +215,9 @@ function unpackTar (tarball, unpackTarget, cb) {
, spawn( npm.config.get("tar")
, ["vx", "--strip-components=1", "-C", unpackTarget]
)
- , cb
+ , log.er(cb, "Failed unpacking the tarball.\n"
+ + "This is very rare. Perhaps the 'gzip' or 'tar' configs\n"
+ + "are set improperly?\n")
)
})
}
@@ -229,6 +231,9 @@ function packTar (targetTarball, folder, cb) {
, ignore = path.join(folder, ".npmignore")
, defaultIgnore = path.join(__dirname, "utils", "default.npmignore")
, include = path.join(folder, ".npminclude")
+ cb = log.er(cb, "Failed unpacking the tarball.\n"
+ + "This is very rare. Perhaps the 'gzip' or 'tar' configs\n"
+ + "are set improperly?\n")
fs.stat(ignore, function (er) {
if (er) ignore = defaultIgnore