npm install现在OSX 10.8失败了

时间:2012-11-28 17:10:33

标签: node.js osx-mountain-lion npm

由于标题声明我无法在我的OSX ML 10.8上使用npm安装'nowjs'。 在让任何人大喊大叫之前:)我已经安装了xCode和命令行实用程序。

这些是来自npm-log的行,包含错误消息。

334 verbose true,/Volumes/Macintosh HD2/Library/Node/TestExpress/node_modules,/Volumes/Macintosh HD2/Library/Node/TestExpress/node_modules unbuild now@0.8.1
335 info postuninstall now@0.8.1
336 error node-proxy@0.6.0 install: `node-gyp configure build`
336 error `sh "-c" "node-gyp configure build"` failed with 1
337 error Failed at the node-proxy@0.6.0 install script.
337 error This is most likely a problem with the node-proxy package,
337 error not with npm itself.
337 error Tell the author that this fails on your system:
337 error     node-gyp configure build
337 error You can get their info via:
337 error     npm owner ls node-proxy
337 error There is likely additional logging output above.
338 error System Darwin 12.2.0
339 error command "node" "/usr/local/bin/npm" "install" "now"
340 error cwd /Volumes/Macintosh HD2/Library/Node/TestExpress
341 error node -v v0.8.14
342 error npm -v 1.1.65
343 error code ELIFECYCLE
344 verbose exit [ 1, true ]

任何人都能指出我的方向吗?

1 个答案:

答案 0 :(得分:1)

有时,node-proxy(在本例中为nowjs)需要与sudo一起安装。