今天在更新GitHub上的blog时,发现hexo指令无法使用,一直报错,不管是hexo clean 、hexo g、还是hexo d 、hexo new 、hexo s,这些指令都出现了错误,
报错原因:插件错误,hexo-deployer-git插件出现错误

去网上查找原因,没有找到该问题的解决办法。
很明显是该插件的问题,就重新下载该插件,但是却提示:
This package is no longer maintained,该插件不再维护。

又查了资料好久,没有看见有网友提到该问题,于是在blog下node_modules文件夹下发现“hexo-deployer-git”文件异常

然后用淘宝NPM镜像的“hexo-deployer-git”试了一下,成功了
指令:$ cnpm install hexo-deployer-git --save

然后。。。就可以用了
网友评论