node.js – 如何在ubuntu上安装node-xmpp

前端之家收集整理的这篇文章主要介绍了node.js – 如何在ubuntu上安装node-xmpp前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
如何在Ubuntu上安装 node-xmpp.

解决方法

依赖关系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

猜你在找的Node.js相关文章