[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
- [Solved] react-quill failed to install error: Could not resolve dependency
- [Solved] To install it, you can run: npm install –save core-js/modules/es.error.cause.js
- npm install error code EINTEGRITY sha1 [How to Solve]
- VUE: How to Solve NPM Always Install Error
- [Solved] Package Install Error: npm ERR code ERR_SOCKET_TIMEOUT npm ERR
- [Solved] NPM err! Cannot read property ‘parent’ of null npm ERR! A complete log of this run can be found in: npm ERR!
- Vue3.0 error: Failed to resolve component el-form-item (el element to be unable to be displayed)
- [Weex]Error in creating project NPM: unable to load file D:\program files\nodejs\node_ global\ weex.ps1 Because scripts are not allowed to run on this system.
- [Solved] Vue3 npm ERR code ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC
- Vue Error: renren-fast-vue execute npm install Error [How to Solve]
- [Solved] VUE npm install Error: Module build failed: Error: ENOENT: no such file or directory, scandir
- Vue Install less Error: While resolving: [email protected]
- [Solved] npm install Error: error code ERR_SOCKET_TIMEOUT
- [Solved] Vue create error: ERROR: command failed: npm install –loglevel error
- [Solved] gyp ERR! stack Error: Could not find any Python installation to use
- npm run dev Error: opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error‘ ]
- How to Solve NPM installation -g @view/client Error
- [Solved] NPM Start Project Error: ‘Error: error:0308010C:digital envelope routines::unsupported’
- [Solved] Vue create Create Project Error: command failed: npm install –loglevel error