Incompatible with npm 7
peterpeterparker opened this issue · 5 comments
Actual Behavior
This package fails when installed with npm@7
npm -v
7.6.3
ng new my-app
...
cd my-app
npm i @angular-extensions/pretty-html-log
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: my-app@0.0.0
npm ERR! Found: @angular/common@11.0.9
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"~11.0.6" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"9 - 10" from @angular-extensions/pretty-html-log@3.1.3
npm ERR! node_modules/@angular-extensions/pretty-html-log
npm ERR! @angular-extensions/pretty-html-log@"*" 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.
Expected Behavior
Being compatible with npm@7
Workaround
Downgrade to npm@6.14.11
Side Note
Angular has been upgraded to support npm@7
(see #19957)
HI @peterpeterparker. I will try to upgrade it to the latest Angular version. Hope that this fixes the issue.
@peterpeterparker I just published v4, can you try again?
Mmmmh still get the same error @kreuzerk but maybe I am missing something?
I created a blank new angular app to be sure but still get
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"9 - 10" from @angular-extensions/pretty-html-log@4.0.0
npm ERR! node_modules/@angular-extensions/pretty-html-log
npm ERR! dev @angular-extensions/pretty-html-log@"4.0.0" from the root project
I did
npm i -g npm@latest
ng new my-first-project
cd my-first-project
npm i
(just to be sure that it is working out)npm i -D @angular-extensions/pretty-html-log
Is it because of this dependencies requirement?
Yes forgot to update the dependency range. That's something that happens to me many times during ng updates. Will deliver a fix. Thx for letting me know