美文网首页
Hexo部署记录

Hexo部署记录

作者: doctordc | 来源:发表于2019-03-02 18:12 被阅读0次

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的就行了。

相关文章

  • Hexo部署记录

    npm国内源不好用,拿淘宝的: #切换国内源 npm install -g cnpm --registry=htt...

  • hexo 使用中的一些问题以及解决方案

    什么是hexo&&hexo能干嘛,请到HEXO自行查看。这里只记录一些相关问题以及自用备忘! 部署问题 先上代码:...

  • Hexo环境搭建2018年5月版

    前言 15年的时候,写了一篇《Hexo环境搭建》,记录了hexo的详细安装部署步骤。三年了,node和hexo都有...

  • 从Octopress转到Hexo

    部署Hexo 在部署Hexo的时候,需要配置hexo/_config.yml文件,这个文件中有一个deploy的配...

  • nginx 403错误

    在部署hexo博客时,由于使用hexo server启动经常停止,所以便想将hexo静态部署到nginx上。但在部...

  • 使用Hexo和github打造个人博客

    准备工作 了解hexo安装和github项目部署 hexo部署到github 这时如果直接hexo d 会报找不...

  • 蓝猴子

    Hexo 部署命令 hexo deploy 执行报错 Hexo 发布内容到 github,执行 hexo depl...

  • Hexo加速访问

    前言 《Hexo环境搭建2018年5月版》一文中,重新记录了hexo的安装部署方法,比较详细完整。但是,在访问的时...

  • hexo博客

    在新机器上部署hexo 环境 nodejs官网下载 Git bash hexo npm install hexo ...

  • 亚马逊AWS服务器上搭建独立的Hexo个人博客

    最近使用Hexo在Github上部署了个人博客,个人博客地址,使用Hexo部署很方便,写作用markdown语法,...

网友评论

      本文标题:Hexo部署记录

      本文链接:https://www.haomeiwen.com/subject/wtryuqtx.html