2012-07-04 71 views
1

我試圖通過NPM在Mac OSX上安裝節點JS肥皂模塊,試圖夠硬手動安裝並指向expat.h等沒有工作節點外籍導致NPM失敗,節點安裝肥皂

NPM安裝肥皂

npm http GET https://registry.npmjs.org/soap 
npm http 304 https://registry.npmjs.org/soap 
npm http GET https://registry.npmjs.org/node-expat 
npm http GET https://registry.npmjs.org/request 
npm http 304 https://registry.npmjs.org/node-expat 
npm http 304 https://registry.npmjs.org/request 

> [email protected] install /Users/test/test1/node_modules/soap/node_modules/node-expat 
> node-waf configure build 

Checking for program g++ or c++   : /usr/bin/g++ 
Checking for program cpp     : /usr/bin/cpp 
Checking for program ar     : /usr/bin/ar 
Checking for program ranlib    : /usr/bin/ranlib 
Checking for g++       : ok 
Checking for node path     : not found 
Checking for node prefix     : ok /usr/local 
Checking for header expat.h    : not installed 
/Users/test/test1/node_modules/soap/node_modules/node-expat/wscript:14: error: the configuration failed (see '/Users/test/test1/node_modules/soap/node_modules/node-expat/build/config.log') 
npm ERR! [email protected] install: `node-waf configure build` 
npm ERR! `sh "-c" "node-waf configure build"` failed with 1 
npm ERR! 
npm ERR! Failed at the [email protected] install script. 
npm ERR! This is most likely a problem with the node-expat package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node-waf configure build 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls node-expat 
npm ERR! There is likely additional logging output above. 

npm ERR! System Darwin 11.3.0 
npm ERR! command "node" "/usr/local/bin/npm" "install" "soap" 
npm ERR! cwd /Users/test/test1 
npm ERR! node -v v0.8.1 
npm ERR! npm -v 1.1.33 
npm ERR! code ELIFECYCLE 
npm ERR! message [email protected] install: `node-waf configure build` 
npm ERR! message `sh "-c" "node-waf configure build"` failed with 1 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /Users/test/test1/npm-debug.log 
npm ERR! not ok code 0 

用Google搜索它安裝手動外籍人士等,但沒有運氣。請注意Xcode 4.3已經安裝,並且還有命令行支持。

我真的不知道如何擺脫以下兩條消息。請幫忙。

Checking for node path     : not found 
Checking for header expat.h    : not installed 

回答

0

它正常工作,現在固定在1.6.1 :)

+0

這實在是一個評論,而不是對問題的回答。請使用「添加評論」爲作者留下反饋。 – j0k

+0

噢,好的,謝謝,我是這樣的作者,但添加它作爲答案,因爲它現在可以解決問題。這個問題幾乎會被使用,直到有人試圖將expat 1.6.0 – shivaspk

+0

噢抱歉,沒有注意到你是作者。所以不要忘記標記你的答案爲接受:) – j0k

1

節點WAF已經在節點0.8被刪除,並正在鼓勵二進制模塊的作者,遷移到節點GYP代替

+0

那麼最新的方式呢?我必須等到肥皂模塊被固定好了嗎?任何解決方法? – shivaspk

+0

將節點降級到0.6或錯誤作者修復其模塊 –

0

你需要libexpat開發頭文件,試着用自制軟件或端口或任何軟件包管理器安裝libexpat1-dev軟件包...