前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >执行 hexo init 出现如下错误的解决方案【Github】

执行 hexo init 出现如下错误的解决方案【Github】

作者头像
来杯Sherry
发布2023-05-25 14:24:03
4750
发布2023-05-25 14:24:03
举报
文章被收录于专栏:第一专栏第一专栏
错误描述:
在这里插入图片描述
在这里插入图片描述
代码语言:javascript
复制
INFO  Cloning hexo-starter https://github.com/hexojs/hexo-starter.git
fatal: unable to access 'https://github.com/hexojs/hexo-starter.git/': Failed to connect to github.com port 443: Timed out
WARN  git clone failed. Copying data instead
FATAL {
  err: [Error: ENOENT: no such file or directory, scandir 'C:\Users\cold\AppData\Roaming\npm\node_modules\hexo-cli\assets'] {
    errno: -4058,
    code: 'ENOENT',
    syscall: 'scandir',
    path: 'C:\\Users\\cold\\AppData\\Roaming\\npm\\node_modules\\hexo-cli\\assets'
  }
} Something's wrong. Maybe you can find the solution here: %s http://hexo.io/docs/troubleshooting.html
解决:

当前网络不佳,更换网络,(更换后还是不佳并且报同样的问题,继续换)

成功
代码语言:javascript
复制
INFO  Cloning hexo-starter https://github.com/hexojs/hexo-starter.git
[32mINFO [39m Install dependencies
added 190 packages from 160 contributors and audited 196 packages in 19.464s

15 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

INFO  Start blogging with Hexo!
Tip:
  • 你的仓库必须是 public 状态,部署后,其他人才可见。( private 如下图)
在这里插入图片描述
在这里插入图片描述
GIthub 官方文档说明:

GitHub Pages 可以在公共存储库中使用GitHub Free和GitHub Free用于组织,在公共和私有存储库中可以使用GitHub Pro,GitHub Team,GitHub Enterprise Cloud和 GitHub Enterprise Server。有关更多信息,请参见“ GitHub 的产品”。 GitHub Pages is available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see “GitHub’s products.”

  • Github 访问不了的,可以用 gitee Page
  • 部署的都是静态页面,有后台的项目就不建议了
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2021-04-11,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 错误描述:
  • 解决:
  • 成功
  • Tip:
    • GIthub 官方文档说明:
    领券
    问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档