提问人:Alfred 提问时间:1/17/2011 更新时间:7/8/2011 访问量:2770
如何在 ubuntu 上安装 node-xmpp
How to install node-xmpp on ubuntu
答:
11赞
Alfred
1/17/2011
#1
依赖项节点 .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
评论