after angular creation program, to add new components, but sometimes there will be “Cannot find module ‘@angular-devkit/core'” problem, the reason for this problem is the lack of @angular-devkit/core. In fact, this problem will prompt
at the time of new program creation, such as ng new newProject
will appear after execution
npm WARN @angular-devkit/schematics@0.0.52 requires a peer of @angular-devkit/core@0.0.29 but none is installed. You must install peer dependencies yourself.
npm WARN @schematics/angular@0.1.17 requires a peer of @angular-devkit/core@0.0.29 but none is installed. You must install peer dependencies yourself.
in these tips are @ presents – devkit/core is not installed successfully, the need to install the prompt
solution is installed, enter the directory executing the following command p>
npm i --save-dev @angular-devkit/core
if again prompted @angular-devkit/core did not install successfully you need to uninstall angular-cli and reinstall angular-cli
npm uninstall -g angular-cli
npm install -g @angular/cli@latest
will solve
after reinstallation
Read More:
- Angular Error You seem to not be depending on “@angular/core“ and/or “rxjs“. (Fixed)
- When angular4.0 starts the project, an error is reported: the “@ angular / compiler cli” package was not properly installed
- [$ injector:unpr ] Unknown provider:–angular.module () function solution
- Ngif of module in ionic 5 + angular
- Local workspace file (‘angular.json’) could not be found.
- Angular $ injector:unpr Unknown Provider Error Fixed
- Angular: Program ng failed to run No application is associated
- Unable to read workspace file ‘D:\angular.json‘: Invalid JSON character: “ “ at
- Perfectly solve the problem of NPM start error: cannot find module ‘XX’
- angular.js Error:[$ injector:modulerr ]Why
- Angular error – can’t resolve all parameters for []
- Error: Cannot find module ‘@babel/core’
- How to solve the problem of Cannot find module’npmlog’ when installing nodejs under Linux
- About the solution of error: cannot find module ‘@ Babel / core’
- Python_ Part 2 programming problems (3)_ solve numpy.core.multiarray Failed to import problem
- Solved – problem cannot find module ‘webpack / bin / config yargs’
- Error: solution to the problem of cannot find module ‘webpack / bin / config yargs’
- Error: cannot find module ‘webpack / lib / ruleset’_ solve
- numpy.core.umath How to solve the problem of failed to import