Hexo部署记录
npm国内源不好用,拿淘宝的:
#切换国内源
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install hexo-cli -g
当然也有这么说的:https://blog.csdn.net/ibmall/article/details/81390639
权限不够就sudo,之后npm就都用cnpm了
看看部署文章:
https://blog.csdn.net/lemonxq/article/details/72676005
https://blog.csdn.net/Working_Harder/article/details/52437783
这两个够用了
之后themes有个next主题地址变化了:
git clone https://github.com/theme-next/hexo-theme-next.git
在执行hexo d -g报错了
解决方法:https://blog.csdn.net/weixin_36401046/article/details/52940313
当然是cnpm
cnpm install --save hexo-deployer-git
当然之前有个warning,
peerDependencies WARNING hexo-deployer-git@1.0.0 › babel-eslint@^10.0.1 requires a peer of eslint@>= 4.12.1 but none was installed
看了看类似的解决方案:https://blog.csdn.net/qq_37336604/article/details/80359808
那就在dependencies里加上eslint的就行了。