Created
September 2, 2010 17:04
-
-
Save jamessanders/562560 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/cache.js b/lib/cache.js | |
index 42dc169..9202be5 100644 | |
--- a/lib/cache.js | |
+++ b/lib/cache.js | |
@@ -213,7 +213,7 @@ function unpackTar (tarball, unpackTarget, cb) { | |
// gzip {tarball} --decompress --stdout | tar xf - --strip-components=1 -C {unpackTarget} | |
pipe( spawn(npm.config.get("gzipbin"), ["--decompress", "--stdout", tarball]) | |
, spawn( npm.config.get("tar") | |
- , ["vx", "--strip-components=1", "-C", unpackTarget] | |
+ , ["xpf", "-", "--strip-components=1", "-C", unpackTarget] | |
) | |
, log.er(cb, "Failed unpacking the tarball.\n" | |
+ "This is very rare. Perhaps the 'gzip' or 'tar' configs\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment