如何在Ubuntu上安装node-xmpp。
答案 0 :(得分:11)
sudo aptitude install build-essential
sudo apt-get install libssl-dev
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install
curl http://npmjs.org/install.sh | sh
sudo apt-get install libexpat1 libexpat1-dev
npm install node-expat
sudo apt-get install libicu-dev
npm install node-stringprep
npm install node-xmpp