0
npm을 다시 설치했으며 npm start 명령을 실행하려고합니다.하지만 아래와 같은 메시지가 나타납니다. 불행히도, 제 생각은 끝났습니다. 누구든지 나를 도울 수 있습니까? 나는 버전 2.3.4을 설치하지만 오류 메시지에잘못된 구성 npm
@angular/[email protected] requires [email protected]'>=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 [email protected]'>=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...'.
내가 typescript 2.3.4를 설치했지만 작동하지 않습니다 – danio900409
무엇이 응답입니까? 또한 프로젝트 또는 전 세계적으로 설치됩니다. 만약 전역 적이라면'npm uninstall -g typescript'를 시도해보십시오. 전역이 아니라면'npm uninstall typescript'를 시도하십시오. 그리고 나서'npm install -g [package name/version]'으로 typescript를 다시 설치하십시오. 이름/버전]'. – zillaofthegods
이것은 정답이지만 다운 그레이드 할 필요는 없습니다. 필자는 Angular 버전에 비해 더 높은 TypeScript 버전을 사용하여 응용 프로그램을 성공적으로 실행했습니다. –