isaacs/npm — Issue #2164: unknown error following " Error: Cannot find module 'mime' "
Author: yyf
Created: 2012-02-16 04:57:06+00:00
State: open

Hi,
I ran into to this problem
Error: Cannot find module 'mime' ...
and tried to solved it by(https://github.com/unconed/TermKit/issues/24),
curl http://npmjs.org/install.sh | sh
but got the following log that suggests me to report, any idea on how to fix this? thanks

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7881 100 7881 0 0 23833 0 --:--:-- --:--:-- --:--:-- 54729
tar=/sw/bin/tar
version:
tar (GNU tar) 1.23
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
install npm@1.1
fetching: http://registry.npmjs.org/npm/-/npm-1.1.1.tgz
0.6.6
1.1.1
cleanup prefix=/usr/local

All clean!

npm ERR! Error: UNKNOWN, unknown error '/usr/local/bin/npm'
npm ERR! You may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Darwin 10.7.0
npm ERR! command "/usr/local/bin/node" "/private/var/folders/Qu/Qu-+gPTnFSaXT0GGGWdbE++++TI/-Tmp-/npm.20467/package/cli.js" "rm" "npm" "-gf"
npm ERR! cwd /private/var/folders/Qu/Qu-+gPTnFSaXT0GGGWdbE++++TI/-Tmp-/npm.20467/package
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.1.1
npm ERR! path /usr/local/bin/npm
npm ERR! code UNKNOWN
npm ERR! message UNKNOWN, unknown error '/usr/local/bin/npm'
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/Qu/Qu-+gPTnFSaXT0GGGWdbE++++TI/-Tmp-/npm.20467/package/npm-debug.log
npm not ok
npm ERR! error installing npm@1.1.1
npm ERR! error rolling back npm@1.1.1 Error: UNKNOWN, unknown error '/usr/local/bin/npm'

npm ERR! Error: UNKNOWN, unknown error '/usr/local/bin/npm'
npm ERR! You may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Darwin 10.7.0
npm ERR! command "/usr/local/bin/node" "/private/var/folders/Qu/Qu-+gPTnFSaXT0GGGWdbE++++TI/-Tmp-/npm.20467/package/cli.js" "install" "-gf"
npm ERR! cwd /private/var/folders/Qu/Qu-+gPTnFSaXT0GGGWdbE++++TI/-Tmp-/npm.20467/package
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.1.1
npm ERR! path /usr/local/bin/npm
npm ERR! code UNKNOWN
npm ERR! message UNKNOWN, unknown error '/usr/local/bin/npm'
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/Qu/Qu-+gPTnFSaXT0GGGWdbE++++TI/-Tmp-/npm.20467/package/npm-debug.log
npm not ok
It failed