GitHub Pages网站找不到文件(404错误)

时间:2016-03-02 12:43:09

标签: github

在我的GitHub页面网站上,我收到以下错误:

404 errors

我在另一个存储库上也遇到了同样的问题。

我已经installnpmbowergulp一起运行,以检查是否已安装所有依赖项。

所以我写了To GitHub支持他们告诉我“看起来你的index.html文件试图加载不存在的文件”。

我用自耕农发电机创造了这一切;我没有做任何改变。

如果有人对此有任何疑问,请告诉我。

1 个答案:

答案 0 :(得分:3)

404错误是正确的,gh-pages分支上的paths do not exist错误为they are required to be

| Type of GitHub  Pages Site           | Pages default domain &  host location on GitHub | Publishing Branch |
|--------------------------------------|-------------------------------------------------|-------------------|
| User Pages Site                      | username.github.io                              | master            |
| Organization Pages Site              | orgname.github.io                               | master            |
| Project Page Owned By a User Account | username.github.io/projectname                  | gh-pages          |
| Project Page Owned By an Oganization | orgname.github.io/projectname                   | gh-pages          |
相关问题