【问题标题】:Github Pages returns 404 Error when trying to grab paper.js resourceGithub Pages 在尝试获取 paper.js 资源时返回 404 错误
【发布时间】:2020-09-18 15:49:10
【问题描述】:

我看到了其他一些帖子,但似乎我仍然无法让它工作,我确保该路径存在于项目中,但尽管其他人工作它似乎无法抓住它。

具体如页面中的控制台所示 加载资源失败:服务器响应状态为 404 () 对于 paper-full.js:1

有问题的 github 页面: https://eriejar.github.io/SoundOfLife/gameoflife.js

回购:https://github.com/Eriejar/SoundOfLife

任何帮助将不胜感激

我尝试了以下网址:

src="~/node_modules/paper/dist/paper-full.js"

src="./node_modules/paper/dist/paper-full.js"

src="/node_modules/paper/dist/paper-full.js"

src="node_modules/paper/dist/paper-full.js"

【问题讨论】:

    标签: javascript github-pages


    【解决方案1】:

    GitHub 页面默认忽略 node_modules 文件夹。从文件夹中复制 paper-full.js 或尝试此处提供的解决方案:Github Pages 404 on node_modules folder

    【讨论】:

      猜你喜欢
      • 2014-09-27
      • 2017-07-17
      • 2017-05-28
      • 2019-01-13
      • 2019-09-04
      • 2016-11-23
      • 1970-01-01
      • 2020-09-03
      • 2020-05-21
      相关资源
      最近更新 更多