Loading [MathJax]/jax/output/CommonHTML/config.js
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >执行 hexo init 出现如下错误的解决方案【Github】

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

作者头像
来杯Sherry
发布于 2023-05-25 06:24:03
发布于 2023-05-25 06:24:03
1.1K00
代码可运行
举报
文章被收录于专栏:第一专栏第一专栏
运行总次数:0
代码可运行
错误描述:
代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
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
代码运行次数:0
运行
AI代码解释
复制
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 条评论
热度
最新
推荐阅读
领券
一站式MCP教程库,解锁AI应用新玩法
涵盖代码开发、场景应用、自动测试全流程,助你从零构建专属AI助手
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
本文部分代码块支持一键运行,欢迎体验
本文部分代码块支持一键运行,欢迎体验