代码之家  ›  专栏  ›  技术社区  ›  Manu Chadha

运行tslint时,数据路径“.fix”应为布尔值

  •  0
  • Manu Chadha  · 技术社区  · 5 年前

    我犯了个错误 Data path ".fix" should be boolean. tslint Angualar6 应用程序。为什么?

    C:\...\web\ui>npm run lint src\app\answer-form\answer-form.component.ts
    
    > ui@0.0.0 lint C:\Users\Public\Documents\manu\codingjedi\code_related\code\frontend\web\ui
    > ng lint --fix "src\app\answer-form\answer-form.component.ts"
    
    Schema validation failed with the following errors:
      Data path ".fix" should be boolean.
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! ui@0.0.0 lint: `ng lint --fix "src\app\answer-form\answer-form.component.ts"`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the ui@0.0.0 lint 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:
    npm ERR!     C:\Users\surface\AppData\Roaming\npm-cache\_logs\2020-02-16T09_28_03_855Z-debug.log
    

    我也试过跑步 npm run lint ui --silent=false --files src\app\answer-form\answer-form.component.ts 但是 cli 似乎挂起,我没有看到任何输出在屏幕上。

    C:\Users\...\web\ui>npm run lint ui --files src\app\answer-form\answer-form.component.ts
    
    > ui@0.0.0 lint C:\...\ui
    > ng lint --fix=true --silent=false "ui" "src\app\answer-form\answer-form.component.ts"
    
    0 回复  |  直到 5 年前
    推荐文章