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

相關文章
相關標籤/搜索