Topic: Not able to run ng serve
PHANI KUMAR SHEELA pro asked 2 years ago
Expected behavior
Actual behavior
Resources (screenshots, code snippets etc.) Node packages may not be installed. Try installing with 'npm install'. Error: Could not find the '@angular-devkit/build-angular:dev-server' builder's node package. npm WARN using --force Recommended protections disabled. npm WARN ERESOLVE overriding peer dependency npm WARN Found: @angular/common@10.2.5 npm WARN node_modules/@angular/common npm WARN @angular/common@"^10.2.4" from the root project npm WARN npm WARN Could not resolve dependency: npm WARN peer @angular/common@"^6.0.0 || ^7.0.0 || ^8.0.0" from @agm/core@1.1.0 npm WARN node_modules/@agm/core npm WARN @agm/core@"^1.0.0" from the root project npm WARN ERESOLVE overriding peer dependency npm WARN Found: @angular/core@10.2.5 npm WARN node_modules/@angular/core npm WARN @angular/core@"^10.2.4" from the root project npm WARN 1 more (@angular/common) npm WARN npm WARN Could not resolve dependency: npm WARN peer @angular/core@"^6.0.0 || ^7.0.0 || ^8.0.0" from @agm/core@1.1.0 npm WARN node_modules/@agm/core npm WARN @agm/core@"^1.0.0" from the root project npm WARN ERESOLVE overriding peer dependency npm WARN Found: @angular/animations@10.2.5 npm WARN node_modules/@angular/animations npm WARN @angular/animations@"^10.2.4" from the root project npm WARN 1 more (@angular/platform-browser) npm WARN npm WARN Could not resolve dependency: npm WARN peer @angular/animations@"^8.0.0 || ^9.0.0-0" from @angular/material@8.2.3 npm WARN node_modules/@angular/material npm WARN @angular/material@"^8.2.3" from the root project npm WARN ERESOLVE overriding peer dependency npm WARN Found: @angular/cdk@10.2.7 npm WARN node_modules/@angular/cdk npm WARN @angular/cdk@"^10.2.4" from the root project npm WARN npm WARN Could not resolve dependency: npm WARN peer @angular/cdk@"8.2.3" from @angular/material@8.2.3 npm WARN node_modules/@angular/material npm WARN @angular/material@"^8.2.3" from the root project npm WARN ERESOLVE overriding peer dependency npm WARN Found: @angular/core@10.2.5 npm WARN node_modules/@angular/core npm WARN @angular/core@"^10.2.4" from the root project npm WARN 1 more (@angular/common) npm WARN npm WARN Could not resolve dependency: npm WARN peer @angular/core@"^8.0.0 || ^9.0.0-0" from @angular/material@8.2.3 npm WARN node_modules/@angular/material npm WARN @angular/material@"^8.2.3" from the root project npm WARN ERESOLVE overriding peer dependency npm WARN Found: @angular/common@10.2.5 npm WARN node_modules/@angular/common npm WARN @angular/common@"^10.2.4" from the root project npm WARN npm WARN Could not resolve dependency: npm WARN peer @angular/common@"^8.0.0 || ^9.0.0-0" from @angular/material@8.2.3 npm WARN node_modules/@angular/material npm WARN @angular/material@"^8.2.3" from the root project npm WARN ERESOLVE overriding peer dependency npm WARN Found: @angular/forms@10.2.5 npm WARN node_modules/@angular/forms npm WARN @angular/forms@"^10.2.4" from the root project npm WARN npm WARN Could not resolve dependency: npm WARN peer @angular/forms@"^8.0.0 || ^9.0.0-0" from @angular/material@8.2.3 npm WARN node_modules/@angular/material npm WARN @angular/material@"^8.2.3" from the root project npm WARN ERESOLVE overriding peer dependency npm WARN Found: @angular/common@10.2.5 npm WARN node_modules/@angular/common npm WARN @angular/common@"^10.2.4" from the root project npm WARN npm WARN Could not resolve dependency: npm WARN peer @angular/common@"^8.0.0" from angular-bootstrap-md@8.10.1 npm WARN node_modules/angular-bootstrap-md npm WARN angular-bootstrap-md@"^8.4.0" from the root project npm WARN ERESOLVE overriding peer dependency npm WARN Found: @angular/core@10.2.5 npm WARN node_modules/@angular/core npm WARN @angular/core@"^10.2.4" from the root project npm WARN 1 more (@angular/common) npm WARN npm WARN Could not resolve dependency: npm WARN peer @angular/core@"^8.0.0" from angular-bootstrap-md@8.10.1 npm WARN node_modules/angular-bootstrap-md npm WARN angular-bootstrap-md@"^8.4.0" from the root project npm WARN ERESOLVE overriding peer dependency npm WARN Found: @angular/compiler@10.2.5 npm WARN node_modules/@angular/compiler npm WARN @angular/compiler@"~10.2.4" from the root project npm WARN 3 more (@angular/compiler-cli, @angular/localize, @angular/platform-browser-dynamic) npm WARN npm WARN Could not resolve dependency: npm WARN peer @angular/compiler@">=2.3.1 <10.0.0 || >9.0.0-beta <10.0.0 || >9.1.0-beta <10.0.0 || >9.2.0-beta <10.0.0" from codelyzer@5.2.2 npm WARN node_modules/codelyzer npm WARN dev codelyzer@"^5.1.2" from the root project npm WARN ERESOLVE overriding peer dependency npm WARN Found: @angular/core@10.2.5 npm WARN node_modules/@angular/core npm WARN @angular/core@"^10.2.4" from the root project npm WARN 1 more (@angular/common) npm WARN npm WARN Could not resolve dependency: npm WARN peer @angular/core@">=2.3.1 <10.0.0 || >9.0.0-beta <10.0.0 || >9.1.0-beta <10.0.0 || >9.2.0-beta <10.0.0" from codelyzer@5.2.2 npm WARN node_modules/codelyzer npm WARN dev codelyzer@"^5.1.2" from the root project npm WARN ERESOLVE overriding peer dependency npm WARN Found: jasmine-core@3.4.0 npm WARN node_modules/jasmine-core npm WARN dev jasmine-core@"~3.4.0" from the root project npm WARN 1 more (karma-jasmine) npm WARN npm WARN Could not resolve dependency: npm WARN peer jasmine-core@">=3.8" from karma-jasmine-html-reporter@1.7.0 npm WARN node_modules/karma-jasmine-html-reporter npm WARN dev karma-jasmine-html-reporter@"^1.4.0" from the root project npm WARN ERESOLVE overriding peer dependency npm WARN Found: @angular/common@10.2.5 npm WARN node_modules/@angular/common npm WARN @angular/common@"^10.2.4" from the root project npm WARN npm WARN Could not resolve dependency: npm WARN peer @angular/common@"^11.0.0" from ngx-captcha@9.0.1 npm WARN node_modules/ngx-captcha npm WARN ngx-captcha@"^9.0.1" from the root project npm WARN ERESOLVE overriding peer dependency npm WARN Found: @angular/core@10.2.5 npm WARN node_modules/@angular/core npm WARN @angular/core@"^10.2.4" from the root project npm WARN 1 more (@angular/common) npm WARN npm WARN Could not resolve dependency: npm WARN peer @angular/core@"^11.0.0" from ngx-captcha@9.0.1 npm WARN node_modules/ngx-captcha npm WARN ngx-captcha@"^9.0.1" from the root project npm ERR! code 1 npm ERR! command failed npm ERR! command git checkout 10.1.1 npm ERR! error: pathspec '10.1.1' did not match any file(s) known to git npm ERR! A complete log of this run can be found in:
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Open
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: MDB4 10.1.1
- Device: msi
- Browser: chrome
- OS: 64
- Provided sample code: No
- Provided link: No
Arkadiusz Idzikowski staff commented 2 years ago
It looks like some of the dependencies that you use are not compatible with Angular 10. For example
ngx-captcha
package v9.0.1 requires Angular 11,angular-bootstrap-md
v8 requires Angular 8 (you don't need this package if you haveng-uikit-pro-standard
, because those are the same libraries,angular-bootstrap-md
is just a free version that does not have all the components).You need to check all the packages listed in the error message and make sure you use version compatible with Angular 10. You may also need to check if your node/npm version is supported by this Angular version.