What is the meaning of npm errors

Viewed 31

I am new to npm. I am trying to run this command in my angular project

npm install jw-bootstrap-switch-ng2 --save

so I want to use this third party library https://www.npmjs.com/package/jw-bootstrap-switch-ng2.

The problem is that when I run the command i get the following error in my console

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: test-project@3.6.0-SNAPSHOT
npm ERR! Found: zone.js@0.11.1
npm ERR! node_modules/zone.js
npm ERR!   zone.js@"0.11.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer zone.js@"~0.10.3" from @angular/core@10.2.5
npm ERR! node_modules/@angular/core
npm ERR!   @angular/core@"~10.2.1" from the root project
npm ERR!   peer @angular/core@"^6.0.0-rc.0 || ^6.0.0 || >=7.0.0" from jw-bootstrap-switch-ng2@2.0.5
npm ERR!   node_modules/jw-bootstrap-switch-ng2
npm ERR!     jw-bootstrap-switch-ng2@"*" from the root project
npm ERR!   1 more (@angular/common)
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\a.user\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:

what does this error means and why I can't install this library ?

0 Answers
Related