Famo.us grunt serve提供空白浏览器

doo*_*man 0 gruntjs yeoman-generator famo.us

尝试开始玩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
Run Code Online (Sandbox Code Playgroud)

使用Chrome在Windows 7上运行它.不知道怎么解决这个问题?

小智 5

你试过运行"bower install"吗?当你运行'yo famous'时,默认情况下应该通过bower安装所有这些依赖项,但我已经看到了一些它没有的情况.

我会忽略上面关于通过github进行克隆的建议,还有其他依赖项,包括不能使用该方法安装的require.js和almond

此外,就缩小版本而言...如果您运行"grunt"命令,您将通过require.js/almond为您提供所有依赖关系的缩小,缓存破坏版本.这比仅具有缩小版本的库更好,因为它仅链接在所使用的模块中.

FWIW我是该工具的作者:D