错误:资源解释为脚本但使用MIME类型text / html传输

时间:2014-07-06 17:47:43

标签: javascript node.js

我正在尝试制作我的第一个node.js网络应用。但是当我试图获得localhost:3030时,我在控制台的chrome中得到了这些错误。

错误1:

  

资源解释为脚本,但使用MIME类型text / html传输:“localhost:3030 / vendor / jquery / jquery.js”。 localhost /:1

错误2:

  

未捕获的SyntaxError:意外的令牌<的jquery.js:1

错误3:

  

未捕获的SyntaxError:意外的令牌)mvAuth.js:1

错误4:

    Error: [$injector:unpr] Unknown provider: mvAuthProvider <- mvAuth
http://errors.angularjs.org/1.2.19/$injector/unpr?p0=mvAuthProvider%20%3C-%20mvAuth
    at http://localhost:3030/vendor/angular/angular.js:78:12
    at http://localhost:3030/vendor/angular/angular.js:3753:19
    at Object.getService [as get] (http://localhost:3030/vendor/angular/angular.js:3881:39)
    at http://localhost:3030/vendor/angular/angular.js:3758:45
    at getService (http://localhost:3030/vendor/angular/angular.js:3881:39)
    at invoke (http://localhost:3030/vendor/angular/angular.js:3908:13)
    at Object.instantiate (http://localhost:3030/vendor/angular/angular.js:3928:23)
    at http://localhost:3030/vendor/angular/angular.js:7216:28
    at http://localhost:3030/vendor/angular/angular.js:6607:34
    at forEach (http://localhost:3030/vendor/angular/angular.js:332:20) <div ng-include="'/partials/account/navbar-login'" class="ng-scope"> angular.js:9959

错误5:

ReferenceError: tue is not defined
    at new <anonymous> (http://localhost:3030/app/main/mvMainCtrl.js:6:70)
    at invoke (http://localhost:3030/vendor/angular/angular.js:3917:17)
    at Object.instantiate (http://localhost:3030/vendor/angular/angular.js:3928:23)
    at http://localhost:3030/vendor/angular/angular.js:7216:28
    at link (http://localhost:3030/vendor/angular-route/angular-route.js:913:26)
    at nodeLinkFn (http://localhost:3030/vendor/angular/angular.js:6648:13)
    at compositeLinkFn (http://localhost:3030/vendor/angular/angular.js:6039:13)
    at publicLinkFn (http://localhost:3030/vendor/angular/angular.js:5934:30)
    at boundTranscludeFn (http://localhost:3030/vendor/angular/angular.js:6059:21)
    at controllersBoundTransclude (http://localhost:3030/vendor/angular/angular.js:6669:18) <div ng-view="" class="ng-scope"> angular.js:9959

我该如何解决这些问题?

0 个答案:

没有答案