After downloading a project from github, I encountered warnings during the npm install
process. Attempting to resolve these issues based on a solution found in this question led me into a problem as certain packages demanded multiple versions of other dependencies, causing the dependency list to expand significantly.
Is there a viable solution for this issue?
Errors Included:
- @angular/core requires a peer of @angular/core@^4.3.0 but none is installed.
- @angular/common requires a peer of @angular/common@^4.3.0 but none is installed.
- and many more...
The contents of the package.json
file are:
{
"name": "fireplace",
"version": "0.0.0",
"license": "MIT",
"devDependencies": {
...
},
"dependencies": {
...
}
}
ng serve
returned errors starting with:
- Cannot find module '@angular/cdk/bidi'
- Cannot find module '@angular/material/typings/core/portal'
- and extending to several more modules...
The compilation failed due to unresolved module imports in the codebase.
Webpack was unable to compile the project successfully, presenting various import errors related to Angular material components and CSS files.