如何在 Ubuntu 上安装node-xmpp 。
问问题
2760 次
1 回答
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
安装节点-xmpp
npm install node-xmpp
于 2011-01-16T23:18:22.580 回答