2

每当我提供使用 yeoman 制作的 Angular 项目的 grunt serve:dist 的输出文件时,当我打开 index.html 时,我会在控制台中收到 404 错误。

我什至还更改了 Gruntfile.js 中的全局路径,但仍然遇到以下错误。

Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/styles/application.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/styles/application.scss Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular/angular.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-animate/angular-animate.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-aria/angular-aria.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:35729/livereload.js?snipver=1 Failed to load resource: net::ERR_CONNECTION_REFUSED
http://0.0.0.0:9000/bower_components/angular-cookies/angular-cookies.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-messages/angular-messages.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-resource/angular-resource.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-route/angular-route.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-sanitize/angular-sanitize.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-touch/angular-touch.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-material/angular-material.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-ui-router/release/angular-ui-router.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/scripts/app.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/scripts/controllers/LayoutCtrl.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/scripts/controllers/SidebarCtrl.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/views/Notification/NotificationCtrl.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/views/News/NewsCtrl.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/styles/application.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-material/angular-material.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/styles/application.scss Failed to load resource: the server responded with a status of 404 (Not Found)

这是我的Gruntfile.js的链接

4

0 回答 0