這是事情。我的配置是Ubuntu 13.04,Node.js v0.10.5和NPM版本1.2.18。Node-waf:找不到
我試圖安裝Node.js的模塊「鞋」,我得到這個錯誤:
[email protected]:/media/tc/examples/node/05.01$ sudo npm install
npm http GET https://registry.npmjs.org/shoe
npm http 304 https://registry.npmjs.org/shoe
npm http GET https://registry.npmjs.org/node-uuid/1.3.3
npm http GET https://registry.npmjs.org/faye-websocket/0.4.0
npm http GET https://registry.npmjs.org/rbytes/0.0.2
npm http 304 https://registry.npmjs.org/node-uuid/1.3.3
npm http 304 https://registry.npmjs.org/rbytes/0.0.2
npm http 304 https://registry.npmjs.org/faye-websocket/0.4.0
> [email protected] install /media/tc/examples/node/05.01/node_modules/shoe/node_modules/sockjs/node_modules/rbytes
> node-waf configure build
sh: 1: node-waf: not found
npm WARN optional dep failed, continuing [email protected]
[email protected] node_modules/shoe
├── [email protected]
└── [email protected] ([email protected], [email protected])
[email protected]:/media/tc/examples/node/05.01$
我在谷歌上搜索,我發現節點WAF與節點GYP取代。我還發現,節點-WAF可以
sudo apt-get install nodejs-dev
的問題是,我使用其中不包括再dev下最新的node.js package by Chris Lea安裝。所以有兩種方法可以解決這個問題。
首先,我可以安裝node-waf(來自源代碼?),但我不知道如何。
其次,我可以(手動)修復模塊,但我不怎麼樣。
我正在尋找任何解決方案。
查看http://stackoverflow.com/questions/15024421/node-js-centos-node-waf/15979279#15979279 – 2013-05-01 12:24:35