【发布时间】:2018-03-09 11:09:52
【问题描述】:
我已经重新安装了 npm,我正在尝试运行命令 npm start 但是我收到如下消息。不幸的是,我的想法已经结束。谁能帮我? 我安装了 2.3.4 版本,但是没有用
@angular/compiler-cli@4.4.3 requires typescript@'>=2.1.0 <2.4.0' but 2.4.0 was found instead.
Using this version can result in undefined behaviour and difficult to debug problems.
Please run the following command to install a compatible version of TypeScript.
npm install typescript@'>=2.1.0 <2.4.0'
ERROR in C:/Users/Desktop/office/node_modules/frontend-components/lib/multi-application/dynamic-form/fields/employment-field/employment-field.component.ts (121,5): Type '{ averageIncome: FormControl; pensionerCardId: FormControl; companyName: FormControl; companyNip:...' is not assignable to type 'Options<FormControl>'.
Property 'name' is missing in type '{ averageIncome: FormControl; pensionerCardId: FormControl; companyName: FormControl; companyNip:...'.
ERROR in C:/Users/Desktop/office/backoffice/node_modules/fobos-frontend-components/lib/multi-application/dynamic-form/fields/employment-field/employment-field.component.ts (141,5): Type '{ averageIncome: false; pensionerCardId: false; companyName: false; companyNip: false; phoneNumbe...' is not assignable to type 'Options<boolean>'.
Property 'name' is missing in type '{ averageIncome: false; pensionerCardId: false; companyName: false; companyNip: false; phoneNumbe...'.
ERROR in C:/Users/Desktop/office/backoffice/src/app/campaigns/campaign-file/campaign-file.resolver.ts (59,5): Type '{ periodType: "Days"; startPeriod: number; endPeriod: number; startNetAmount: number; application...' is not assignable to type 'CampaignFinancialParameters'.
Property 'startPeriodType' is missing in type '{ periodType: "Days"; startPeriod: number; endPeriod: number; startNetAmount: number; application...'.
【问题讨论】:
标签: angularjs node.js typescript npm npm-install