Đây là điều. Cấu hình của tôi là Ubuntu 13.04, Node.js v0.10.5 và phiên bản NPM 1.2.18.Node-waf: không tìm thấy
Tôi cố gắng để cài đặt Node.js mô-đun "giày" và tôi đã nhận lỗi này:
[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$
Tôi đã googling và tôi thấy rằng nút-waf được thay thế bằng nút-làm người nào nhức nhối. Tôi cũng thấy rằng nút-waf thể được cài đặt với
sudo apt-get install nodejs-dev
Vấn đề là tôi đang sử dụng mới nhất node.js package by Chris Lea mà không bao gồm dev nữa. Vì vậy, có hai tùy chọn để giải quyết vấn đề.
Trước tiên, tôi có thể cài đặt nút-waf (từ nguồn?), Nhưng tôi không làm cách nào.
Thứ hai, tôi có thể (thủ công) sửa mô-đun, nhưng tôi không làm cách nào.
Tôi đang tìm bất kỳ giải pháp nào.
Xem http://stackoverflow.com/questions/15024421/node-js-centos-node-waf/15979279#15979279 –