如何在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