Ng掉毛错误

时间:2018-07-20 16:12:58

标签: asp.net-core-2.0 angular6 tslint

自从我开始使用angular以来,我就一直遇到这些掉毛错误,但我似乎无法通过Google或搜索堆栈溢出来找到它们背后的更深层含义。

背景知识:我正在使用https://github.com/rafaelfgx/DotNetArchitecture 作为我的Web应用程序的基础。

附上我的错误代码,我真的需要了解这里发生的情况。 你们都可以告诉我让我指向正确的方向。

有些我不理解的东西...

我如何知道TsLinting错误发生在哪里?

他们提到的日志在哪里? “ npm ERR!此运行的完整日志可在以下位置找到:”

这是什么废话!?!

info: Microsoft.EntityFrameworkCore.Infrastructure[10403]
      Entity Framework Core 2.1.1-rtm-30846 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: MaxPoolSize=128
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
      Executed DbCommand (74ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
      IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE') SELECT 1 ELSE SELECT 0
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
      Executed DbCommand (15ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
      SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
      Executed DbCommand (17ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
      SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
      Executed DbCommand (17ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
      SELECT [MigrationId], [ProductVersion]
      FROM [__EFMigrationsHistory]
      ORDER BY [MigrationId];
info: Microsoft.EntityFrameworkCore.Migrations[20405]
      No migrations were applied. The database is already up to date.
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
      Executed DbCommand (23ms) [Parameters=[@__get_Item_0='?' (DbType = Int64)], CommandType='Text', CommandTimeout='30']
      SELECT TOP(1) [e].[UserId], [e].[Email], [e].[Login], [e].[Name], [e].[Password], [e].[Status], [e].[Surname]
      FROM [User].[Users] AS [e]
      WHERE [e].[UserId] = @__get_Item_0
info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
      User profile is available. Using 'C:\Users\jle01\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
infoHosting environment: Development
: Microsoft.AspNetCore.SpaServices[0]
      Starting @angular/cli on port 1105...
Content root path: C:\Users\jle01\source\Workspaces\Web\WebPortalV2\Development\WebPortalV2\WebPortalV2\Web\UserInterface
infoNow listening on: http://localhost:8090
: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:8090/
Now listening on: https://localhost:8095
Application started. Press Ctrl+C to shut down.
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 284.3773ms 307
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET https://localhost:8095/
info: Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware[24]
      No cached response available for this request.
info: Microsoft.AspNetCore.SpaServices[0]
      > project@1.0.0 serve C:\Users\jle01\source\Workspaces\Web\WebPortalV2\Development\WebPortalV2\WebPortalV2\Web\UserInterface\ClientApp
> ng lint && ng serve "--port" "1105"



fail: Microsoft.AspNetCore.SpaServices[0]
      Lint errors found in the listed files.

npmfail: Microsoft.AspNetCore.SpaServices[0]
      npm ERR! code ELIFECYCLE

fail: Microsoft.AspNetCore.SpaServices[0]
      npm ERR! errno 1

fail: Microsoft.AspNetCore.SpaServices[0]
      npm ERR! project@1.0.0 serve: `ng lint && ng serve "--port" "1105"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the project@1.0.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


fail: Microsoft.AspNetCore.SpaServices[0]
      npm ERR! A complete log of this run can be found in:

fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]
      An unhandled exception has occurred while executing the request.
System.AggregateException: One or more errors occurred. (One or more errors occurred. (The NPM script 'serve' exited without indicating that the Angular CLI was listening for requests. The error output was: Lint errors found in the listed files.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! project@1.0.0 serve: `ng lint && ng serve "--port" "1105"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the project@1.0.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


npm ERR! A complete log of this run can be found in:

)) ---> System.AggregateException: One or more errors occurred. (The NPM script 'serve' exited without indicating that the Angular CLI was listening for requests. The error output was: Lint errors found in the listed files.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! project@1.0.0 serve: `ng lint && ng serve "--port" "1105"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the project@1.0.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


npm ERR! A complete log of this run can be found in:

) ---> System.InvalidOperationException: The NPM script 'serve' exited without indicating that the Angular CLI was listening for requests. The error output was: Lint errors found in the listed files.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! project@1.0.0 serve: `ng lint && ng serve "--port" "1105"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the project@1.0.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


npm ERR! A complete log of this run can be found in:

 ---> System.IO.EndOfStreamException: Attempted to read past the end of the stream.
   at Microsoft.AspNetCore.SpaServices.AngularCli.AngularCliMiddleware.StartAngularCliServerAsync(String sourcePath, String npmScriptName, ILogger logger)
   --- End of inner exception stack trace ---
   at Microsoft.AspNetCore.SpaServices.AngularCli.AngularCliMiddleware.StartAngularCliServerAsync(String sourcePath, String npmScriptName, ILogger logger)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Microsoft.AspNetCore.SpaServices.AngularCli.AngularCliMiddleware.<>c.<Attach>b__2_0(Task`1 task)
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Microsoft.AspNetCore.SpaServices.Extensions.Util.TaskTimeoutExtensions.WithTimeout[T](Task`1 task, TimeSpan timeoutDelay, String message)
   at Microsoft.AspNetCore.SpaServices.Extensions.Proxy.SpaProxy.PerformProxyRequest(HttpContext context, HttpClient httpClient, Task`1 baseUriTask, CancellationToken applicationStoppingToken, Boolean proxy404s)
   at Microsoft.AspNetCore.Builder.SpaProxyingExtensions.<>c__DisplayClass2_0.<<UseProxyToSpaDevelopmentServer>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at WebPortal.CrossCutting.AspNetCore.Middlewares.ExceptionMiddleware.InvokeAsync(HttpContext context) in C:\Users\jle01\source\Workspaces\Web\WebPortalV2\Development\WebPortalV2\WebPortalV2\CrossCutting\AspNetCore\Middlewares\ExceptionMiddleware.cs:line 30
   at WebPortal.CrossCutting.AspNetCore.Middlewares.ExceptionMiddleware.InvokeAsync(HttpContext context) in C:\Users\jle01\source\Workspaces\Web\WebPortalV2\Development\WebPortalV2\WebPortalV2\CrossCutting\AspNetCore\Middlewares\ExceptionMiddleware.cs:line 43
   at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.MigrationsEndPointMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.DatabaseErrorPageMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.DatabaseErrorPageMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
---> (Inner Exception #0) System.AggregateException: One or more errors occurred. (The NPM script 'serve' exited without indicating that the Angular CLI was listening for requests. The error output was: Lint errors found in the listed files.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! project@1.0.0 serve: `ng lint && ng serve "--port" "1105"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the project@1.0.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


npm ERR! A complete log of this run can be found in:

) ---> System.InvalidOperationException: The NPM script 'serve' exited without indicating that the Angular CLI was listening for requests. The error output was: Lint errors found in the listed files.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! project@1.0.0 serve: `ng lint && ng serve "--port" "1105"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the project@1.0.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


npm ERR! A complete log of this run can be found in:

 ---> System.IO.EndOfStreamException: Attempted to read past the end of the stream.
   at Microsoft.AspNetCore.SpaServices.AngularCli.AngularCliMiddleware.StartAngularCliServerAsync(String sourcePath, String npmScriptName, ILogger logger)
   --- End of inner exception stack trace ---
   at Microsoft.AspNetCore.SpaServices.AngularCli.AngularCliMiddleware.StartAngularCliServerAsync(String sourcePath, String npmScriptName, ILogger logger)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Microsoft.AspNetCore.SpaServices.AngularCli.AngularCliMiddleware.<>c.<Attach>b__2_0(Task`1 task)
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
---> (Inner Exception #0) System.InvalidOperationException: The NPM script 'serve' exited without indicating that the Angular CLI was listening for requests. The error output was: Lint errors found in the listed files.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! project@1.0.0 serve: `ng lint && ng serve "--port" "1105"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the project@1.0.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


npm ERR! A complete log of this run can be found in:

 ---> System.IO.EndOfStreamException: Attempted to read past the end of the stream.
   at Microsoft.AspNetCore.SpaServices.AngularCli.AngularCliMiddleware.StartAngularCliServerAsync(String sourcePath, String npmScriptName, ILogger logger)
   --- End of inner exception stack trace ---
   at Microsoft.AspNetCore.SpaServices.AngularCli.AngularCliMiddleware.StartAngularCliServerAsync(String sourcePath, String npmScriptName, ILogger logger)<---
<---

info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 7534.3545ms 500 text/html; charset=utf-8

现在:从我看到的内容来看,应该有一个可以查看tslint日志文件的地方,但是上面提供的控制台输出日志中并未包含该文件。抱歉,我是这个领域的初学者。

0 个答案:

没有答案