Skip to content

Instantly share code, notes, and snippets.

View jamessanders's full-sized avatar

James Sanders jamessanders

View GitHub Profile
gambit-server/web-server
snap-hello-server/bin
snap-hello-server/dist/
@jamessanders
jamessanders / base.sh
Created December 9, 2010 04:13
change directory to the base of your project by looking for '.git'
# change directory to the base of your project
# Your project base is the directory that contains
# either _darcs or .git
# to use as a command add to .zshrc or .bashrc
# alias base='source <path/to/base.sh>
CUR=$(pwd);
while [ ! "$CUR" = "/" ]
npm ERR! Failed unpacking the tarball.
npm ERR! This is very rare. Perhaps the 'gzip' or 'tar' configs
npm ERR! are set improperly?
npm ERR!
npm ERR! Error installing .
npm ERR! Error: Failed tar "cv" "--exclude" ".git" "-X" "/usr/local/lib/node/.npm/npm/0.1.27-12/package/lib/utils/default.npmignore" "node-relay-client"
npm ERR! exited with 1
npm ERR! at ChildProcess.<anonymous> (/usr/local/lib/node/.npm/npm/0.1.27-12/package/lib/utils/exec.js:41:19)
npm ERR! at ChildProcess.emit (events:33:26)
npm ERR! at ChildProcess.onexit (child_process:151:12)
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]