Microsoft.AspNetCore.SpaServices [0]发生未处理的异常:无效或意外的令牌

时间:2020-05-24 11:55:06

标签: angularjs asp.net-core

我正在创建一个ASPNETCORE Angular应用,执行DOTNET WATCH RUN时出现以下错误:

[error] D:\TeoProjects.Net\AspNet\Teomaz_C\ClientApp\node_modules\bluebird\js\release\reduce.js:1
(function (exports, require, module, __filename, __dirname) {

SyntaxError: Invalid or unexpected token
at new Script (vm.js:80:7)
at createScript (vm.js:274:10)
at Object.runInThisContext (vm.js:326:10)
at Module._compile (internal/modules/cjs/loader.js:664:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at module.exports (D:\TeoProjects.Net\AspNet\Teomaz_C\ClientApp\node_modules\bluebird\js\release\promise.js:788:1)
at Object. (D:\TeoProjects.Net\AspNet\Teomaz_C\ClientApp\node_modules\bluebird\js\release\bluebird.js:9:36)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)

我尝试过:

npm install

删除node_modules,然后重新安装。

我尝试了另外两个我不记得的选项,这些选项在堆栈溢出中都是建议的。

0 个答案:

没有答案