Skip to content

Instantly share code, notes, and snippets.

@jamessanders
Created September 2, 2010 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamessanders/562560 to your computer and use it in GitHub Desktop.
Save jamessanders/562560 to your computer and use it in GitHub Desktop.
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