isaacs/npm — Issue #2185: can't install package on ubuntu
Author: yaronn
Created: 2012-02-22 14:20:10+00:00
State: open

Hi

I've uploaded my project to npm. I can install it on windows, but on ubunto I get the bellow error. There isn't any fancy installation it's really simple. I am able to install other packages though. Any idea?

yaron@yaron-VirtualBox:~/Projects/wsjstester$ npm install ws-js
npm WARN publish-everything ws-js@0.0.2 Adding entire directory to tarball. Please add a
npm WARN publish-everything ws-js@0.0.2 .npmignore or specify a 'files' array in the package.json
npm ERR! Failed creating the tarball.
npm ERR! This is very rare. Perhaps the 'gzip' or 'tar' configs
npm ERR! are set improperly?
npm ERR!
npm ERR! couldn't pack /tmp/npm-1329920081367/1329920081367-0.4881570250727236/contents/package to /home/yaron/.node_libraries/.npm/.cache/ws-js/0.0.2/package.tgz
npm ERR! Error installing ws-js@0.0.2
npm ERR! Error: Failed /bin/tar "-cvf" "-" "--exclude" ".git" "-X" "/usr/share/npm/lib/utils/default.npmignore" "package/"
npm ERR! exited with 2
npm ERR! at ChildProcess. (/usr/share/npm/lib/utils/exec.js:42:19)
npm ERR! at ChildProcess.emit (events.js:67:17)
npm ERR! at Socket. (child_process.js:172:12)
npm ERR! at Socket.emit (events.js:64:17)
npm ERR! at Array.2 (net.js:831:12)
npm ERR! at EventEmitter._tickCallback (node.js:126:26)
npm ERR! Report this *entire* log at
npm ERR! or email it to
npm ERR! Just tweeting a tiny part of the error will not be helpful.
npm not ok
yaron@yaron-VirtualBox:~/Projects/wsjstester$