hexo : 安装 配置

  1. npm install hexo-cli -g
  2. hexo init blog
  3. cd blog
  4. npm install
  5. hexo server


sh: 1: node: not found
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read

npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/hexo/node_modules/warehouse/lib/schematype.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

解决方法:sudo apt-get install nodejs-legacy