2012-03-02 44 views
2

嗨,我是新的nodejs字,我使用Windows版本。我想安装我的节点XMPP波什服务器一样安装说明在窗口上安装node-xmpp-bosh与nodejs

Go to the directory where you want to install 
node-xmpp-bosh (for a local install and move to 
setp-9) or follow step-8 

$ cd ~/ 
$ npm install node-xmpp-bosh 
$ node node_modules/node-xmpp-bosh/run-server.js 

8. Install globally and run 
$ npm install node-xmpp-bosh -g 
$ bosh-server 

但经过$ npm install node-xmpp-bosh 没有安装完成,这是NMP的日志文件:

 info it worked if it ends with ok 
...  
     info [email protected] Failed to exec install script 
    ERR! error installing [email protected] 
    info unbuild C:\Program Files\nodejs\node_modules\node-xmpp-bosh\node_modules\node-expat 
    verbose from cache C:\Program Files\nodejs\node_modules\node-xmpp-bosh\node_modules\node-expat\package.json 
    info preuninstall [email protected] 
    info uninstall [email protected] 
    verbose unbuild [email protected] [ false, 
    verbose unbuild [email protected] 'C:\\Program Files\\nodejs\\node_modules', 
    verbose unbuild [email protected] 'C:\\Program Files\\nodejs\\node_modules\\node-xmpp-bosh\\node_modules' ] 
    info postuninstall [email protected] 
    verbose installOne cb [email protected] 
    verbose about to build C:\Program Files\nodejs\node_modules\node-xmpp-bosh 
    ERR! error installing [email protected] 
    info unbuild C:\Program Files\nodejs\node_modules\node-xmpp-bosh 
    verbose from cache C:\Program Files\nodejs\node_modules\node-xmpp-bosh\package.json 
    info preuninstall [email protected] 
    info uninstall [email protected] 
    verbose unbuild [email protected] [ true, 
    verbose unbuild [email protected] 'C:\\Program Files\\nodejs\\node_modules', 
    verbose unbuild [email protected] 'C:\\Program Files\\nodejs\\node_modules' ] 
    verbose binRoot [ 'C:\\Program Files\\nodejs\\node_modules\\.bin', 
    verbose binRoot { 'bosh-server': './run-server.js' } ] 
    info postuninstall [email protected] 
    ERR! error rolling back [email protected] Error: UNKNOWN, unknown error 'C:\Program Files\nodejs\node_modules\node-xmpp-bosh\node_modules\websocket' 
    verbose installOne cb [email protected] 
    ERR! [email protected] install: `node-waf configure build` 
    ERR! `cmd "/c" "node-waf configure build"` failed with 1 
    ERR! 
    ERR! Failed at the [email protected] install script. 
    ERR! This is most likely a problem with the node-expat package, 
    ERR! not with npm itself. 
    ERR! Tell the author that this fails on your system: 
    ERR!  node-waf configure build 
    ERR! You can get their info via: 
    ERR!  npm owner ls node-expat 
    ERR! There is likely additional logging output above. 
    ERR! 
    ERR! System Windows_NT 5.1.2600 
    ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "node-xmpp-bosh" 
    ERR! cwd C:\Program Files\nodejs 
    ERR! node -v v0.6.11 
    ERR! npm -v 1.1.1 
    ERR! code ELIFECYCLE 
    ERR! message [email protected] install: `node-waf configure build` 
    ERR! message `cmd "/c" "node-waf configure build"` failed with 1 
    ERR! errno {} 
    verbose exit [ 1, true ] 

我能做些什么解决此问题 谢谢!

回答