关于hexo搭建博客报错的相关问题

在使用Hexo搭建博客时,可能会遇到`npm i install hexo-cil`报错,但不影响Hexo的安装,通过`hexo -v`可以验证安装成功。如果安装的模块只显示node_modules和json文件,可能是因为文件夹未清空,使用`rm -rf *`在git bash中清空文件夹即可。`hexo init`会克隆博客组件,确保文件夹为空以避免问题。安装过程可能较慢,请耐心等待。
摘要由CSDN通过智能技术生成

 

首先npm i install hexo-cil会报错,但这个错误无关紧要

NIKI@DESKTOP-P1RG672 MINGW64 /d/Archer
$ npm i hexo-cli -g
npm WARN rm not removing C:\Users\NIKI\AppData\Roaming\npm\hexo.cmd as it wasn't installed by C:\Users\NIKI\AppData\Roaming\npm\node_modules\hexo-cli
npm WARN rm not removing C:\Users\NIKI\AppData\Roaming\npm\hexo as it wasn't installed by C:\Users\NIKI\AppData\Roaming\npm\node_modules\hexo-cli
C:\Users\NIKI\AppData\Roaming\npm\hexo -> C:\Users\NIKI\AppData\Roaming\npm\node_modules\hexo-cli\bin\hexo
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\hexo-cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})

只要输入hexo -v,那么hexo即是安装成功的。

评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值