比如我安装bower
npm install bower -g
请问如何解决这样的问题?
提示如下
> lodash[@0](/user/0).9.2 install /usr/local/lib/node_modules/bower/node_modules/lodash
> node build/post-install
npm ERR! TypeError: options.uid should be a number
npm ERR! at ChildProcess.spawn (child_process.js:782:24)
npm ERR! at Object.exports.spawn (child_process.js:618:9)
npm ERR! at spawn (/usr/local/lib/node_modules/npm/lib/utils/exec.js:103:22)
npm ERR! at exec (/usr/local/lib/node_modules/npm/lib/utils/exec.js:40:12)
npm ERR! at /usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:146:5
npm ERR! at process.startup.processNextTick.process._tickCallback (node.js:244:9)
npm ERR! You may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-[@googlegroups](/user/googlegroups).com>
npm ERR!
npm ERR! System Darwin 12.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "bower" "-g"
npm ERR! cwd /private/var/root/spm
npm ERR! node -v v0.8.14
npm ERR! npm -v 1.1.16
npm ERR! message options.uid should be a number
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/root/spm/npm-debug.log
npm not ok