npmでlibxmljsをインストールしようとしたときにエラー

$ npm i libxmljs

これでこんなエラーが出たら

Nothing to clean (project not configured)
npm WARN continuing anyway libxmljs@0.5.4 preuninstall: `node-waf clean`
npm WARN continuing anyway `sh "-c" "node-waf clean"` failed with 1

npm ERR! libxmljs@0.5.4 install: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 1
npm ERR! 
npm ERR! Failed at the libxmljs@0.5.4 install script.
npm ERR! This is most likely a problem with the libxmljs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-waf configure build
npm ERR! You can get their info via:
npm ERR!     npm owner ls libxmljs
npm ERR! There is likely additional logging output above.
npm ERR! 
npm ERR! System Linux 2.6.32-27-generic
npm ERR! command "node" "/usr/local/bin/npm" "i" "libxmljs"
npm ERR! cwd /home/goto/project/bot
npm ERR! node -v v0.6.11
npm ERR! npm -v 1.1.2
npm ERR! code ELIFECYCLE
npm ERR! message libxmljs@0.5.4 install: `node-waf configure build`
npm ERR! message `sh "-c" "node-waf configure build"` failed with 1
npm ERR! errno {}
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/goto/project/bot/npm-debug.log
npm not ok

libxml2とlibxml2-develってのが入ってないからエラーしてるだけらしいので、インストールする。

sudo apt-get install libxml2 libxml2-dev

これでまた最初のコマンドを打てばインストールできるはず。