Got error with "npm install -d"

44 views
Skip to first unread message

KhoaTA

unread,
Dec 4, 2011, 5:21:18 AM12/4/11
to Express
Hello,
As i followed the guide from expressjs:
http://expressjs.com/guide.html#installation
Until i run this command
$ npm install -d
I got the error log below. I searched & tried some ways around (sudo,
different folder...) but it's still not working.
Has anyone got this problem before?
Thanks in advance!

npm info it worked if it ends with ok
npm info using n...@1.1.0-alpha-2
npm info using no...@v0.6.3
npm info preinstall applicat...@0.0.1
npm info addNamed [ 'jade', '>= 0.0.1' ]
npm info fetch https://registry.npmjs.org/jade/-/jade-0.19.0.tgz
npm info shasum f4225c5e34230d9d09d4d8f515df579dda47de94
npm info shasum /tmp/
npm-1322789989936/1322789989936-0.6130614043213427/tmp.tgz
npm ERR! TypeError: Bad argument
npm ERR! at Object._open (fs.js:224:11)
npm ERR! at open (/usr/local/lib/node_modules/npm/node_modules/
graceful-fs/graceful-fs.js:73:6)
npm ERR! at Object.open (/usr/local/lib/node_modules/npm/
node_modules/graceful-fs/graceful-fs.js:67:3)
npm ERR! at Object.lutimes (/usr/local/lib/node_modules/npm/
node_modules/graceful-fs/graceful-fs.js:28:6)
npm ERR! at setProps (/usr/local/lib/node_modules/npm/node_modules/
fstream/lib/writer.js:267:18)
npm ERR! at Object.oncomplete (/usr/local/lib/node_modules/npm/
node_modules/fstream/lib/writer.js:205:7)
npm ERR! Report this *entire* log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <np...@googlegroups.com>
npm ERR!
npm ERR! System Linux 2.6.38-10-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "-d"
npm ERR! cwd /tmp/foo
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! /tmp/foo/npm-debug.log
npm not ok

vision media [ Tj Holowaychuk ]

unread,
Dec 4, 2011, 8:14:01 AM12/4/11
to expre...@googlegroups.com
looks like npm broke, possibly try updating npm, or contact the author with that log


--
You received this message because you are subscribed to the Google Groups "Express" group.
To post to this group, send email to expre...@googlegroups.com.
To unsubscribe from this group, send email to express-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/express-js?hl=en.




--
Tj Holowaychuk
Vision Media
President & Creative Lead

Michael "Kato" Wulf

unread,
Dec 4, 2011, 12:47:53 PM12/4/11
to expre...@googlegroups.com
I've never run npm install -d successfully. I've tried several version from 0.4.(7?) to 0.6.4 and `npm install -d` has always caused that same error. I've tried compiling node from scratch and utilizing nvm to install compatible node/npm versions.
Michael Wulf


KhoaTA

unread,
Dec 4, 2011, 7:59:30 PM12/4/11
to Express
Thank you.
I updated npm to the newest version and it's the solution.
By the way, i also installed jade (https://github.com/visionmedia/
jade) right after updating npm, and that solved another error when npm
tried to do something with jade.
Reply all
Reply to author
Forward
0 new messages