Hexo安装问题

在github pages上搭建博客已经有一段时间了,最后选择hexo的缘由是编译速度快.以前在 ubuntu上hexo命令运行正常,此次换在debian sid上,结果npm install -g hexo一直有问题, 根据错误信息提示,express包须要node 0.8.0以上版本.因此须要先卸载npm以及低版本的node.node

卸载nodejs和npmgit

1
sudo apt-get autoremove nodejs npm

编译安装最新版node以及npmgithub

1
2
3
4
5
6
7
8
9
sudo apt-get update && sudo apt-get install git-core curl build-essential openssl libssl-dev
git clone https://github.com/joyent/node.git
cd node
git checkout v0.9.5 (or the version you want to build)
./configure --openssl-libpath=/usr/lib/ssl
make
sudo make install
node -v
npm -v

以上来源于:http://stackoverflow.com/questions/10478768/installing-node-js-on-debian-6-0express

相关文章
相关标签/搜索