Grunt服务器响应状态404

时间:2013-09-16 15:55:06

标签: javascript gruntjs yeoman

我做了一个干净的Yeoman webapp安装。当我运行grunt服务器时,我收到以下错误:

Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:9000/modules/main.js

Uncaught Error: Script error for: main
http://requirejs.org/docs/errors.html#scripterror 

还有其他人遇到过这个问题并解决了吗?

1 个答案:

答案 0 :(得分:0)

事实证明,webapp安装中没有包含main.js文件的modules文件夹。我刚刚添加了文件夹和文件来修复错误。