HEXO搭建
==================
安装nodejs
1 | sudo apt-get install nodejs |
安装HEXO
1 | npm install hexo-cli -g |
安装Deployer
1 | npm install hexo-deployer-git --save |
####创建博客1
2hexo 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