Migrating from 2.x to 3.0

Tommy Chen edited this page Mar 5, 2015 · 6 revisions

This doc helps you migrating from 2.x to 3.0. You may be interested in Breaking Changes in Hexo 3.0.

Modify package.json

Add hexo data to package.json.

{
  "hexo": {
    "version": ""
  }
}

Clean cache

hexo clean

Install hexo-cli

npm install hexo-cli -g

Install Hexo

npm install hexo --save

Install generators

npm install hexo-generator-index --save
npm install hexo-generator-archive --save
npm install hexo-generator-category --save
npm install hexo-generator-tag --save

Install server

npm install hexo-server --save

Install deployers

npm install hexo-deployer-git --save
npm install hexo-deployer-heroku --save
npm install hexo-deployer-rsync --save
npm install hexo-deployer-openshift --save

Update plugins

npm install hexo-renderer-marked@0.2 --save
npm install hexo-renderer-stylus@0.2 --save
npm install hexo-generator-feed@1 --save
npm install hexo-generator-sitemap@1 --save