Today I was working on a front end app. I faced below error while running npm install command.
npm ERR! Conflicting peer dependency: @angular/core@6.1.10
npm ERR! node_modules/@angular/core
npm ERR! peer @angular/core@"^6.0.3" from @angular-redux/router@9.0.0
npm ERR! node_modules/@angular-redux/router
npm ERR! @angular-redux/router@"^9.0.0" from the root project
Fix for Conflicting peer dependency in node.js
- Downgrade the npm version to the previous version.
- remove the node_modules folder.
- remove package-lock.json.
- please do npm install one more time to do a fresh installation of the dependency.