文丨liyuhong2019
发布时间:2018-12-20 (周四 广州/晴)
最后更新时间:2018-12-20 (周四 广州/晴)
参考:

一、搭建准备
1.安装好git、GitHub、nodejs
一、搭建安装可能出现的错误
Nodejs

权限问题
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules']
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules' }
二、搭建一个本地的个人博客
npm install hexo-cli -g (如果出现错误 使用权限去安装)
hexo init blog
cd blog
npm install
hexo server





最终本地访问效果

网友评论