简体   繁体   English

node-expat导致npm因节点安装soap而失败

[英]node-expat causing npm to fail with node install soap

I am trying to install node js soap module via NPM on Mac OSX, tried hard enough to manually install and point to expat.h etc didn't work 我正在尝试通过Mac OSX上的NPM安装node js soap模块,试图尝试手动安装并指向expat.h等不起作用

npm install soap 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

> node-expat@1.6.0 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! node-expat@1.6.0 install: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 1
npm ERR! 
npm ERR! Failed at the node-expat@1.6.0 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 node-expat@1.6.0 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

Have googled it installed expat manually etc but no luck. 用谷歌搜索它手动安装了expat等,但是没有运气。 Please note Xcode 4.3 is installed and also command line support is in place. 请注意,已安装Xcode 4.3,并且已提供命令行支持。

I am really not sure how I can get rid of the following two messages. 我真的不确定如何摆脱以下两个消息。 Please help. 请帮忙。

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

node-waf已在节点0.8中删除,鼓励二进制模块作者迁移到node-gyp

现在可以正常工作了1.6.1 :)

您需要libexpat开发标头,尝试使用自制程序或端口或任何程序包管理器安装libexpat1-dev程序包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM