Я новичок ... Я пытаюсь сделать npm install --save
в моем существующем проекте, но он выдает много предупреждений .. Ниже приведено предупреждение ...
npm WARN @angular/common@7.0.4 requires a peer of @angular/core@7.0.4 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material@8.2.3 requires a peer of @angular/animations@^8.0.0 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material@8.2.3 requires a peer of @angular/cdk@8.2.3 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material@8.2.3 requires a peer of @angular/core@^8.0.0 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material@8.2.3 requires a peer of @angular/common@^8.0.0 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material@8.2.3 requires a peer of @angular/forms@^8.0.0 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/forms@7.0.4 requires a peer of @angular/core@7.0.4 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/platform-browser@7.0.4 requires a peer of @angular/core@7.0.4 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/http@7.0.4 requires a peer of @angular/core@7.0.4 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/platform-browser-dynamic@7.0.4 requires a peer of @angular/core@7.0.4 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/router@7.0.4 requires a peer of @angular/core@7.0.4 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/service-worker@7.2.15 requires a peer of @angular/common@7.2.15 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.0.0-beta.2 requires a peer of popper.js@^1.12.3 but none is installed. You must install peer dependencies yourself.
npm WARN ng-recaptcha@3.0.5 requires a peer of @angular/core@^4.0.0 || ^5.0.0-beta.1 but none is installed. You must install peer dependencies yourself.
npm WARN ngx-gauge@1.0.0-beta.11 requires a peer of @angular/common@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ngx-gauge@1.0.0-beta.11 requires a peer of @angular/core@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/cdk@5.2.5 requires a peer of @angular/core@>=5.0.0 <7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/cdk@5.2.5 requires a peer of @angular/common@>=5.0.0 <7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/compiler-cli@7.2.15 requires a peer of @angular/compiler@7.2.15 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
послечто ng serve
для запуска проекта
но он показывает некоторые ошибки в node_modules .. это ошибка .......
ERROR in node_modules/ngx-gauge/gauge/gauge-directives.d.ts(3,35): error TS2694: Namespace '"D:/new_internship/Trello_task/sentura-hms/node_modules/@angular/core/core"' has no exported member 'ɵɵDirectiveDefWithMeta'
node_modules/ngx-gauge/gauge/gauge-directives.d.ts(6,35): error TS2694: Namespace '"D:/new_internship/Trello_task/sentura-hms/node_modules/@angular/core/core"' has no exported member 'ɵɵDirectiveDefWithMeta'.
node_modules/ngx-gauge/gauge/gauge-directives.d.ts(9,35): error TS2694: Namespace '"D:/new_internship/Trello_task/sentura-hms/node_modules/@angular/core/core"' has no exported member 'ɵɵDirectiveDefWithMeta'.
node_modules/ngx-gauge/gauge/gauge-directives.d.ts(12,35): error TS2694: Namespace '"D:/new_internship/Trello_task/sentura-hms/node_modules/@angular/core/core"' has no exported member 'ɵɵDirectiveDefWithMeta'.
node_modules/ngx-gauge/gauge/gauge.d.ts(57,35): error TS2694: Namespace '"D:/new_internship/Trello_task/sentura-hms/node_modules/@angular/core/core"' has no exported member 'ɵɵComponentDefWithMeta'.
node_modules/ngx-gauge/ngx-gauge.module.d.ts(6,32): error TS2694: Namespace '"D:/new_internship/Trello_task/sentura-hms/node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDefWithMeta'.
node_modules/ngx-gauge/ngx-gauge.module.d.ts(7,34): error TS2694: Namespace '"D:/new_internship/Trello_task/sentura-hms/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectorDef'.
src/app/models/reminder.ts(1,9): error TS2305: Module '"D:/new_internship/Trello_task/sentura-hms/node_modules/firebase/empty-import"' has no exported member 'Timestamp'.
src/app/models/reminder.ts(1,25): error TS2497: Module '"D:/new_internship/Trello_task/sentura-hms/node_modules/firebase/empty-import"' resolves to a non-module entity and cannot be imported using this construc
т.
это мой package.json файл
{
"name": "default",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular-devkit/build-angular": "^0.13.7",
"@angular/animations": "^7.0.4",
"@angular/common": "7.0.4",
"@angular/compiler": "7.0.4",
"@angular/core": "^7.0.4",
"@angular/fire": "^5.0.2",
"@angular/forms": "7.0.4",
"@angular/http": "7.0.4",
"@angular/material": "latest",
"@angular/platform-browser": "7.0.4",
"@angular/platform-browser-dynamic": "7.0.4",
"@angular/router": "7.0.4",
"@angular/service-worker": "^7.0.4",
"@ng-bootstrap/ng-bootstrap": "^4.0.0",
"angular-custom-modal": "^1.2.0",
"angular2-datetimepicker": "^1.1.1",
"bootstrap": "4.0.0-beta.2",
"classlist.js": "^1.1.20150312",
"core-js": "^2.4.1",
"datatables.net": "^1.10.19",
"datatables.net-bs4": "^1.10.19",
"datatables.net-buttons": "^1.5.4",
"datatables.net-buttons-bs4": "^1.5.4",
"enhanced-resolve": "^3.3.0",
"firebase": "^5.5.2",
"fullcalendar": "^3.6.1",
"fullcalendar-scheduler": "^1.9.4",
"html2canvas": "^1.0.0-alpha.12",
"jquery": "^3.3.1",
"jspdf": "^1.4.1",
"mkdirp": "^0.5.1",
"moment": "^2.22.2",
"ng-pick-datetime": "^5.2.6",
"ng-recaptcha": "^3.0.0",
"ng2-date-picker": "^2.11.0",
"ngx-gauge": "^1.0.0-beta.7",
"ngx-toastr": "^9.1.1",
"primeng": "^4.1.3",
"promise-polyfill": "^8.1.0",
"rxjs": "^6.3.1",
"rxjs-compat": "^6.3.3",
"tslib": "^1.9.0",
"wrappy": "^1.0.2",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular/cli": "^7.1.2",
"@angular/compiler-cli": "^7.2.11",
"@angular/language-service": "7.0.4",
"@types/jasmine": "~2.8.3",
"@types/jasminewd2": "~2.0.2",
"@types/jquery": "^3.3.22",
"@types/moment": "^2.13.0",
"@types/node": "~6.0.60",
"codelyzer": "^4.0.1",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"protractor": "~5.1.2",
"ts-node": "~4.1.0",
"tslint": "^5.11.0",
"tslint-microsoft-contrib": "^6.0.0",
"typescript": "3.1.6"
}
}
Я использую
- Угловой - 6.0.5
- узел - 8.10
- npm - версии 5.6.0
..... Я также пробовал с угловыми 7.2 и 8.0 также с узлом 10 (новая стабильная версия) перед установкой углового 6.0.5 cli.butу меня это не сработало ... но оно работает на коленях у моего друга для вышеперечисленных версий (angular-6.0.5, node-8.10, npm-5.6.0). Кто-нибудь может сказать мне, что является причиной этого ..?