substack/dnode — Issue #81: Can't install dnode on Mac
Author: johnnywengluu
Created: 2011-12-27 13:30:12+00:00
State: open

Running "npm install dnode" on Mac gives me:

$ npm install dnode
npm ERR! Failed unpacking /var/folders/_k/h5_vdvbs2rnb72tdtqcks37h0000gn/T/npm-1324992084515/1324992088847-0.2880681094247848/tmp.tgz
npm ERR! couldn't unpack /var/folders/_k/h5_vdvbs2rnb72tdtqcks37h0000gn/T/npm-1324992084515/1324992088847-0.2880681094247848/tmp.tgz to /var/folders/_k/h5_vdvbs2rnb72tdtqcks37h0000gn/T/npm-1324992084515/1324992088847-0.2880681094247848/contents
npm ERR! error installing dnode@0.9.3 Error: `tar "-zmvxpf" "/var/folders/_k/h5_vdvbs2rnb72tdtqcks37h0000gn/T/npm-1324992084515/1324992088847-0.2880681094247848/tmp.tgz"`
npm ERR! error installing dnode@0.9.3 failed with 1
npm ERR! error installing dnode@0.9.3 at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/tar.js:217:20)
npm ERR! error installing dnode@0.9.3 at ChildProcess.emit (events.js:70:17)
npm ERR! error installing dnode@0.9.3 at maybeExit (child_process.js:359:16)
npm ERR! error installing dnode@0.9.3 at Socket. (child_process.js:464:7)
npm ERR! error installing dnode@0.9.3 at Socket.emit (events.js:67:17)
npm ERR! error installing dnode@0.9.3 at Array.0 (net.js:300:10)
npm ERR! error installing dnode@0.9.3 at EventEmitter._tickCallback (node.js:192:40)
npm ERR! Error: `tar "-zmvxpf" "/var/folders/_k/h5_vdvbs2rnb72tdtqcks37h0000gn/T/npm-1324992084515/1324992088847-0.2880681094247848/tmp.tgz"`
npm ERR! failed with 1
npm ERR! at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/tar.js:217:20)
npm ERR! at ChildProcess.emit (events.js:70:17)
npm ERR! at maybeExit (child_process.js:359:16)
npm ERR! at Socket. (child_process.js:464:7)
npm ERR! at Socket.emit (events.js:67:17)
npm ERR! at Array.0 (net.js:300:10)
npm ERR! at EventEmitter._tickCallback (node.js:192:40)
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Darwin 11.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "dnode"
npm ERR! cwd /Volumes/Private/johnnyluu/Development/johnnywengluu/webui
npm ERR! node -v v0.6.0
npm ERR! npm -v 1.0.106
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Volumes/Private/johnnyluu/Development/johnnywengluu/webui/npm-debug.log
npm not ok

It seems that the tar command used in Mac is not supported.

How can I fix this?