Goal: I try to update and add peer dependencies according to the error I got.
I expect the peer error messages to be gone but they are still there.
Error Messages:
npm WARN angular-cli-ghpages@0.6.2 requires a peer of @angular-devkit/architect@>=0.800.0 but none is installed. You must install peer dependencies yourself.
npm WARN angular-cli-ghpages@0.6.2 requires a peer of @angular-devkit/core@>=8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN angular-cli-ghpages@0.6.2 requires a peer of @angular-devkit/schematics@>=8.0.0 but none is installed. You must install peer dependencies yourself.
I tried the following commands:
npm install --save-dev "@angular-devkit/architect@>=0.800.0"
npm install --save-dev "@angular-devkit/schematics@>=8.0.0"
npm install --save-dev "@angular-devkit/core@>=8.0.0"
I also (After Shashank wrote me on the reply) deleted package-json.lock. Then typed the command "npm i" and got many messages such: npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\web development\projects\frontend current backup 8 - Copy\urigrossltdWebsite\node_modules\webpack-dev-server\node_modules\fsevents\node_modules\yallist' -> 'C:\web development\projects\frontend current backup 8 - Copy\urigrossltdWebsite\node_modules\webpack-dev-server\node_modules\fsevents\node_modules.yallist.DELETE'
package.json code:
{
"name": "urigrossltd",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular-devkit/build-angular": "^0.901.0",
"@angular/animations": "^9.1.0",
"@angular/cdk": "^9.2.0",
"@angular/common": "^9.1.0",
"@angular/compiler": "^9.1.0",
"@angular/core": "^9.1.0",
"@angular/forms": "^9.1.0",
"@angular/localize": "^9.1.0",
"@angular/material": "^9.2.0",
"@angular/platform-browser": "^9.1.0",
"@angular/platform-browser-dynamic": "^9.1.0",
"@angular/router": "^9.1.0",
"@material/button": "^5.1.0",
"@material/icon-button": "^5.1.0",
"@material/toolbar": "^2.3.0",
"@ng-bootstrap/ng-bootstrap": "^6.0.2",
"@sendgrid/mail": "^7.0.0",
"angular-animations": "0.0.10",
"bootstrap": "^4.4.1",
"core-js": "^3.6.4",
"jquery": "^3.4.1",
"popper.js": "^1.16.1",
"rxjs": "^6.5.5",
"save": "^2.4.0",
"sendgrid": "^5.2.3",
"slidetoggle": "^1.2.0",
"tslib": "^1.11.1",
"zone.js": "~0.10.3"
},
"devDependencies": {
"@angular-devkit/architect": "^0.901.0",
"@angular-devkit/core": "^9.1.0",
"@angular-devkit/schematics": "^9.1.0",
"@angular/cli": "^9.1.0",
"@angular/compiler-cli": "^9.1.0",
"@angular/language-service": "^9.1.0",
"@types/jasmine": "~3.5.10",
"@types/jasminewd2": "^2.0.8",
"@types/node": "^13.11.0",
"acorn": "^7.1.1",
"codelyzer": "~5.2.2",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~5.0.1",
"karma": "^4.4.1",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "^2.1.1",
"karma-jasmine": "~3.1.1",
"karma-jasmine-html-reporter": "^1.5.3",
"protractor": "^5.4.3",
"ts-node": "~8.8.1",
"tslint": "~6.1.1",
"typescript": "~3.8.3"
}
}