执行 hexo init 出现如下错误的解决方案【Github】
·
错误描述:
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
解决:
当前网络不佳,更换网络,(更换后还是不佳并且报同样的问题,继续换)
成功
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
- 部署的都是静态页面,有后台的项目就不建议了
更多推荐
已为社区贡献3条内容
所有评论(0)