jekyll&hexo basic

nvm(node version manage)

`curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | sh

change nvm mirrors

NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node nvm install stable

node.js

  • nvm install stable

change npm mirrors

  • npm --registry https://registry.npm.taobao.org install express

hexo

  • npm install -g hexo-cli

or

  • npm --registry=https://registry.npm.taobao.org install -g hexo-cli

ps: use "--register option"

hexo-deployer-git --save

  • npm install hexo-deployer-git --save

rvm(ruby version manage)

  • gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
  • \curl -sSL https://get.rvm.io | bash -s stable
  • source ~/.bashrc
  • source ~/.bash_profile

ps: follow the tips in the CLI

ruby

gem

change the mirrors

  • gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
  • gem sources -l

ps: make sure it's "https://gems.ruby-china.org/"

jekyll

  • gem install jekyll

bundler

  • gem install bundler

change the mirrors

  • bundle config mirror.https://rubygems.org https://gems.ruby-china.org

gollum

  • gem install gollum

lib-dev

  • sudo apt-get install lib-dev

ps: "lib-dev" may be needed, folllow the tips of the CLI

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容