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:
Diffstat (limited to 'lib/cache.js')
-rw-r--r--lib/cache.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cache.js b/lib/cache.js
index ac6f10e68..42dc169a2 100644
--- a/lib/cache.js
+++ b/lib/cache.js
@@ -211,7 +211,7 @@ function unpackTar (tarball, unpackTarget, cb) {
if (er) return log.er(cb, "Could not create "+unpackTarget)(er)
// cp the gzip of the tarball, pipe the stdout into tar's stdin
// gzip {tarball} --decompress --stdout | tar xf - --strip-components=1 -C {unpackTarget}
- pipe( spawn(npm.config.get("gzip"), ["--decompress", "--stdout", tarball])
+ pipe( spawn(npm.config.get("gzipbin"), ["--decompress", "--stdout", tarball])
, spawn( npm.config.get("tar")
, ["vx", "--strip-components=1", "-C", unpackTarget]
)
@@ -249,7 +249,7 @@ function packTar (targetTarball, folder, cb) {
if (include) args.push("-T", include)
args.push(addFolder)
var tar = spawn(npm.config.get("tar"), args)
- , gzip = spawn(npm.config.get("gzip"), ["--stdout"])
+ , gzip = spawn(npm.config.get("gzipbin"), ["--stdout"])
, errState
pipe(tar, gzip, function (er) {
if (errState) return