如何在ubuntu上安装node-xmpp

时间:2011-01-16 23:14:58

标签: node.js node-xmpp

如何在Ubuntu上安装node-xmpp

1 个答案:

答案 0 :(得分:11)

依赖关系node.js

sudo aptitude install build-essential
sudo apt-get install libssl-dev

安装node.js& npm正确的方式

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

安装node-xmpp依赖项

sudo apt-get install libexpat1 libexpat1-dev 
npm install node-expat
sudo apt-get install libicu-dev 
npm install node-stringprep

安装node-xmpp

npm install node-xmpp