isaacs/npm — Issue #1826: Strange installation errors when trying to install Nide
Author: egeozcan
Created: 2011-12-01 19:46:01+00:00
State: open

Using Node.js v0.6.3 which is installed through nvm. npm is automatically installed. The plug-in nide documentation points that it needs su rights but can't use sudo with an nvm install. I get the following when I do *npm install -g nide*

npm ERR! TypeError: Bad argument
npm ERR! at Object._open (fs.js:224:11)
npm ERR! at open (/home/ege/.nvm/v0.6.3/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:73:6)
npm ERR! at Object.open (/home/ege/.nvm/v0.6.3/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:67:3)
npm ERR! at Object.lutimes (/home/ege/.nvm/v0.6.3/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:28:6)
npm ERR! at setProps (/home/ege/.nvm/v0.6.3/lib/node_modules/npm/node_modules/fstream/lib/writer.js:267:18)
npm ERR! at Object.oncomplete (/home/ege/.nvm/v0.6.3/lib/node_modules/npm/node_modules/fstream/lib/writer.js:205:7)
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Linux 2.6.38-11-generic
npm ERR! command "node" "/home/ege/.nvm/v0.6.3/bin/npm" "install" "-g" "nide"
npm ERR! cwd /home/ege/workspace/fstest
npm ERR! node -v v0.6.3
npm ERR! npm -v 1.1.0-alpha-2
npm ERR! message Bad argument
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ege/workspace/fstest/npm-debug.log
npm not ok