If you are install packages and got error "make: node-waf: Command not found", which I got when I was
npm install ws
npm install websocket
Both packages need node-waf / to compile things locally.
Where is node-waf? Google may tell you it is at /usr/local/bin/node-waf if you compiled node.js from the source and it is the only way you can get it.
The second half is wrong! You can get it by installing nodejs-dev package.
As stated in here
Ubuntusudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejsIt installs current stable Node on the current stable ubuntu.
If you want to compile Node C++ modules:
sudo apt-get install nodejs-dev
Or configure shell script for install node.js using http://apptob.org
- 作者:cail
- 版权声明:署名-非商业性使用-禁止演绎 CC BY-NC-ND 3.0
- 原文网址:http://en.dogeno.us/?p=7878
- 最后修改时间:2012年4月14日 05:20 PDT
Previous:
Weekly Tweets for 2012-04-09
Next:
Exposing a recent download speed on ed2k network
blog by cail
- » the Paper Link - my latest Creation for PubMed users
- » How to use ImageJ to analyze images?
- » 2shRNA - design oligos for RNAi
- » Play background music
- » about this blog
- » about me
Hot in 'How-To'
- analog - analog/digital - digital, VGA - DVI - HDMI - 74,649 views
- Ez-12 windsurfer antenna - 54,066 views
- Import custom ringtones to iPhone via iTunes (no jailbreaking required) - 47,106 views
- How to add new ringtones to iPhone - 42,515 views
- Use GParted to align partitions on a SSD hard drive for better performance - 41,024 views

Leave a Reply