【发布时间】:2014-05-06 02:44:21
【问题描述】:
尝试开始使用 Famo.us 示例。我按照 Github 页面上的步骤进行操作,当我执行“grunt serve”时,浏览器会打开,但出现以下错误:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:1337/lib/famous-polyfills/functionPrototypeBind.js
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:1337/lib/famous-polyfills/classList.js
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:1337/lib/famous/core/famous.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:1337/lib/famous-polyfills/requestAnimationFrame.js
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:1337/lib/requirejs/require.js
在带有 Chrome 的 Windows 7 上运行它。知道如何解决这个问题吗?
【问题讨论】:
-
这些文件是否真的存在于您的应用目录中?
-
嗨,不,我在任何地方都找不到它们。 app 文件夹中仅有的 javascript 文件是 main.js 和 requireConfig.js。我没有更改任何内容,只是按照以下步骤操作: npm install -g yo grunt-cli bower generator- Famous mkdir newProject cd newProject yo Famous grunt serve
标签: gruntjs yeoman-generator famo.us