angular2-jsonapi icon indicating copy to clipboard operation
angular2-jsonapi copied to clipboard

npm 7 error

Open magnusviri opened this issue 5 years ago • 2 comments

I've updated to npm 7 and I can't install angular2-jsonapi. It's a brand new angular project.

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: @angular/[email protected] npm ERR! node_modules/@angular/common npm ERR! @angular/common@"~10.2.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/common@"^8.2.5" from [email protected] npm ERR! node_modules/angular2-jsonapi npm ERR! angular2-jsonapi@"*" from the root project 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 /Users/x/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/x/.npm/_logs/2020-11-12T00_11_58_666Z-debug.log

magnusviri avatar Nov 12 '20 00:11 magnusviri

It doesn't look like an error related to your NPM version but more to your Angular version. So it seems that it is more an issue about supporting Angular v10 than NPM v7.

You can install it anyway and try if it works with Angular 10 by using npm install --force.

hpawe01 avatar Jan 21 '21 10:01 hpawe01

I'm about to start a new project using angular11 and this library. How is the compatibility this angular version? Is using this combination of versions a dead-end?

maurei avatar Apr 11 '21 14:04 maurei