2012-11-28 229 views
0

由於標題狀態,我無法在OSX ML 10.8上使用npm安裝'nowjs'。 之前,讓任何人喊出:)我有xCode安裝和命令行實用程序。npm現在安裝失敗OSX 10.8

這些是來自npm-log的錯誤消息。

334 verbose true,/Volumes/Macintosh HD2/Library/Node/TestExpress/node_modules,/Volumes/Macintosh HD2/Library/Node/TestExpress/node_modules unbuild [email protected] 
335 info postuninstall [email protected] 
336 error [email protected] install: `node-gyp configure build` 
336 error `sh "-c" "node-gyp configure build"` failed with 1 
337 error Failed at the [email protected] 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

有時節點代理(所以在這種情況下nowjs),需要與sudo一起安裝。

+0

yeahhh!謝謝!愚蠢的是我也試圖以root身份執行npm(以root身份登錄),但它也失敗了。用sudo執行完美工作。 Thaks –