HEXO搭建


HEXO搭建
==================

安装nodejs

1
2
sudo apt-get install nodejs
sudo apt-get install nodejs-legacy

安装HEXO

1
npm install hexo-cli -g

安装Deployer

1
npm install hexo-deployer-git --save

####创建博客

1
2
hexo init blog
cd blog

####安装依赖

1
npm install

问题

问题1: Error: Cannot find module ‘hexo-util’
回答1:npm install – save-dev hexo-util

问题2: sh: 1: cannot create highlight_alias.json: Permission denied
回答2: 尝试执行npm config set unsafe-perm true,依然不行按照官方解决方案尝试https://docs.npmjs.com/getting-started/fixing-npm-permissions

Limin Wang wechat
Welcome!
I'm happy it's useful to you!
Show comments from Gitment