isaacs/npm — Issue #1799: Object._open (fs.js:224:11) error when installing jade
Author: manojkumarm
Created: 2011-11-28 18:26:08+00:00
State: open

Hello

The following is the log file at ~/npm-debug.log when trying to install jade with npm with the command:

npm install jade

Any suggestions on how to fix will be greatly appreciated; I also don't know if this is an issue with jade or npm; so pls. advise if this is an issue with jade and pls. excuse for the confusion.

I am on Ubuntu 11.04 running in a VM on a windows 7

thanks a lot

p.s: just guessing but the second line that starts with ERR might be the reason for the issue: the path has a //. Here is just that line in case:

ERR! at open (/usr/local/lib/node_modules/npm/node_modules//graceful-fs.js:73:6)

---------log file start:

info it worked if it ends with ok
verbose cli [ 'node', '/usr/local/bin/npm', 'install', 'jade' ]
info using npm@1.1.0-alpha-2
info using node@v0.6.3
verbose config file /home/manoj/.npmrc
verbose config file /usr/local/etc/npmrc
verbose config file /usr/local/lib/node_modules/npm/npmrc
verbose caching /home/manoj/node_modules/express/package.json
verbose loadDefaults express@2.5.1
verbose caching /home/manoj/node_modules/cloud9/package.json
verbose loadDefaults cloud9@0.5.1
verbose caching /home/manoj/node_modules/socket.io/package.json
verbose loadDefaults socket.io@0.8.7
verbose caching /home/manoj/node_modules/mongoose/package.json
verbose loadDefaults mongoose@2.3.13
verbose into /home/manoj [ 'jade' ]
verbose cache add jade
verbose cache add [ 'jade', null ]
silly cache add: name, spec, args [ undefined, 'jade', [ 'jade', null ] ]
verbose parsed url { pathname: 'jade', path: 'jade', href: 'jade' }
info addNamed [ 'jade', '' ]
verbose addNamed [ null, '' ]
verbose GET jade
verbose raw, before any munging jade
verbose url resolving [ 'https://registry.npmjs.org/', './jade' ]
verbose url resolved https://registry.npmjs.org/jade
verbose etag "B1MMJF2NUQJHWULG2E7SOSGD6"
silly get cb [ 304,
silly get cb { server: 'CouchDB/1.1.0 (Erlang OTP/R14B04)',
silly get cb etag: '"B1MMJF2NUQJHWULG2E7SOSGD6"',
silly get cb date: 'Mon, 28 Nov 2011 18:13:16 GMT',
silly get cb 'content-length': '0' } ]
verbose etag jade from cache
verbose GET jade/0.18.0
verbose raw, before any munging jade/0.18.0
verbose url resolving [ 'https://registry.npmjs.org/', './jade/0.18.0' ]
verbose url resolved https://registry.npmjs.org/jade/0.18.0
verbose etag "B1MMJF2NUQJHWULG2E7SOSGD6"
silly get cb [ 304,
silly get cb { server: 'CouchDB/1.1.0 (Erlang OTP/R14B04)',
silly get cb etag: '"B1MMJF2NUQJHWULG2E7SOSGD6"',
silly get cb date: 'Mon, 28 Nov 2011 18:13:16 GMT',
silly get cb 'content-length': '0' } ]
verbose etag jade/0.18.0 from cache
verbose bin dist [ '0.6-ares1.7.5-DEV-evundefined-openssl1.0.0e-v83.6.6.8-linux-ia32-3.0.0-12-generic',
verbose bin dist { shasum: '2868cc3f4686b37be59becc506b7c79b254888e6',
verbose bin dist tarball: 'http://registry.npmjs.org/jade/-/jade-0.18.0.tgz' } ]
verbose addRemoteTarball [ 'https://registry.npmjs.org/jade/-/jade-0.18.0.tgz',
verbose addRemoteTarball '2868cc3f4686b37be59becc506b7c79b254888e6' ]
verbose mkdir (expected) error ENOENT, no such file or directory '/tmp/npm-1322503992493'
verbose mkdir (expected) error ENOENT, no such file or directory '/tmp/npm-1322503992493/1322503992493-0.20043232035823166'
verbose mkdir done: /tmp/npm-1322503992493/1322503992493-0.20043232035823166 755
info fetch https://registry.npmjs.org/jade/-/jade-0.18.0.tgz
verbose fetch to /tmp/npm-1322503992493/1322503992493-0.20043232035823166/tmp.tgz
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 30720
info shasum 2868cc3f4686b37be59becc506b7c79b254888e6
info shasum /tmp/npm-1322503992493/1322503992493-0.20043232035823166/tmp.tgz
verbose mkdir (expected) error ENOENT, no such file or directory '/tmp/npm-1322503992493/1322503992493-0.20043232035823166/___package.npm'
verbose mkdir done: /tmp/npm-1322503992493/1322503992493-0.20043232035823166/___package.npm 755
verbose unpack_ uid, gid [ undefined, undefined ]
verbose unpackTarget /tmp/npm-1322503992493/1322503992493-0.20043232035823166/package
silly gunzTarPerm modes [ '755', '644' ]
ERR! TypeError: Bad argument
ERR! at Object._open (fs.js:224:11)
ERR! at open (/usr/local/lib/node_modules/npm/node_modules//graceful-fs.js:73:6)
ERR! at Object.open (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:67:3)
ERR! at Object.lutimes (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:28:6)
ERR! at setProps (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:267:18)
ERR! at Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:205:7)
ERR! Report this *entire* log at:
ERR!
ERR! or email it to:
ERR!
ERR!
ERR! System Linux 3.0.0-12-generic
ERR! command "node" "/usr/local/bin/npm" "install" "jade"
ERR! cwd /home/manoj
ERR! node -v v0.6.3
ERR! npm -v 1.1.0-alpha-2
ERR! message Bad argument
verbose exit [ 1, true ]