(GitHub+Hexo搭建个人博客系列)01、搭建本地的hexo个人博客

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

参考:

头条号里面的 馨客栈

哔哩哔哩的 周三josan


配图.png

一、搭建准备

1.安装好git、GitHub、nodejs

一、搭建安装可能出现的错误
Nodejs


image.png

权限问题

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
指令1《npm install hexo-cli -g》___ 安装NodeJS调试工具.png
指令2《hexo init blog》___在本地创建静态文件.jpg

指令3《cd blog》___跳转到blog文件夹目录下面.png
指令4《npm install》___安装npm模块.png

指令5《hexo server》___使用hexo开启本地服务器.png

最终本地访问效果


image.png

你可能感兴趣的:((GitHub+Hexo搭建个人博客系列)01、搭建本地的hexo个人博客)