GitHub Pages网站找不到文件(404错误) [英] GitHub Pages site cannot find files (404 errors)
问题描述
在我的GitHub页面上,我收到以下错误消息:
我在另一个存储库中也遇到同样的问题。
使用 因此,我写了To GitHub支持,他们告诉我:它看起来像你的 npm
, bower
和<$ c运行 install
已经安装了所有的依赖关系。 code> index.html 文件正试图加载不存在的文件。
发电机;我没有做任何改变。
如果有人对此有任何想法,请告诉我。
404错误是正确的,那些 gh-pages 分支上的/path/gh-page/rel =nofollow>路径不存在为他们必须是才能正常工作。
| GitHub页面类型网站|页面默认域名&在GitHub |上的主机位置发布分支|
| -------------------------------------- | ------ ------------------------------------------- | ------ ------------- |
|用户页面网站| username.github.io | master |
|组织页面网站| orgname.github.io | master |
|项目页面由用户帐户拥有| username.github.io/projectname | gh-pages |
|项目页面由组织|拥有orgname.github.io/projectname | gh-pages |
On my GitHub pages site I get the following error:
I have also had the same problem on another repository.
I have run install
with npm
, bower
, and gulp
already to check all dependencies are installed.
So I wrote To GitHub support and they told me "It looks like your index.html
file is trying to load files that don't exist".
I created this all with the yeoman generator; I didn't make any changes .
If someone has any idea about this please tell me.
The 404 errors are correct, those paths do not exist on your gh-pages
branch as they are required to be for this to work.
| 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 |
这篇关于GitHub Pages网站找不到文件(404错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!