[environment]
1. Analysis reason:
After investigation, 1. It is found that there is peer dependency in package.json, indicating the version of angular 7. X, which is incompatible with the version of angular 8. X that the current project depends on, resulting in compilation errors.
2, in addition, the original use of npm 6.x install is no problem, because npm 7.x on peer dependency compatibility requirements are higher, so the error is reported.
2. Solution:
Method 1: — force or — legacy peer DEPs
npm install –force
npm install –legacy-peer-deps
Method 2:
Modify the dependency definition package.json of the problem component and the component version that peer dependency depends on.
Read More:
- [Solved] npm Install vuex Error: npm ERR! code ERESOLVE
- Vue Install less Error: While resolving: [email protected]
- Vue3 + vite install element-plus error [How to Solve]
- [Solved] vite package Error: globalThis is not defined
- [Solved] Vue3 Error: Cant find variable: GlobalThis
- [Solved] NPM Start Project Error: ‘Error: error:0308010C:digital envelope routines::unsupported’
- [Solved] Angular&CI/CD:Error: initial exceeded maximum budget
- Module build failed: Error: Couldn’t find preset “es2015” relative to directory
- How to Solve Converting circular structure to JSON‘ Error
- Vue Error: component has been registered but not used [Two Methods to Solve]
- [Solved] Vue Error: Error: Rule can only have one resource source (provided resource and test + include + ex
- npm ERR code ELIFECYCLE [How to Solve]
- [Solved] Syntax Error: Error: Cannot find module ‘cache-loader‘
- [Solved] Vue E-Charts Error: These dependencies were not found:
- How to Solve VUE Error: Avoid mutating a prop directly since the value will be overwritten …
- [Solved] Install The Latest Version of Jest Error: TypeError: Cannot read property ‘instrument‘ of undefined
- [Solved] react-router-dom Error: index.js:1 Warning: Functions are not valid as a React child.
- [Solved] NUXT.JS. npm run dev Error: Error: error:0308010C:digital envelope routines::unsupported
- [Solved] Vue3.0 Error: The component has been registered but not used vue/no-unused-components, Close eslint
- [Solved] Error:Plugin/Preset files are not allowed to export objects, only functions