Skip to content

Could not resolve dependency...peer @angular/compiler@"15.2.0" from @angular/compiler-cli@15.2.0 #347

Description

@mattvbv

When following the instructions to make it run, I get this error at the npm install stage :

$ npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: sb-admin-angular14-bs5@10.0.0 npm ERR! Found: @angular/compiler@15.1.5 npm ERR! node_modules/@angular/compiler npm ERR! @angular/compiler@"15.1.5" from the root project npm ERR! peer @angular/compiler@"15.1.5" from @angular/localize@15.1.5 npm ERR! node_modules/@angular/localize npm ERR! @angular/localize@"15.1.5" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/compiler@"15.2.0" from @angular/compiler-cli@15.2.0 npm ERR! node_modules/@angular/compiler-cli npm ERR! dev @angular/compiler-cli@"15.2.0" 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.

My environment (Ubuntu 22.04) :

npm version { 'sb-admin-angular14-bs5': '10.0.0', npm: '9.6.0', node: '18.14.2', v8: '10.2.154.26-node.22', uv: '1.44.2', zlib: '1.2.13', brotli: '1.0.9', ares: '1.18.1', modules: '108', nghttp2: '1.51.0', napi: '8', llhttp: '6.0.10', uvwasi: '0.0.14', acorn: '8.8.1', simdutf: '3.1.0', undici: '5.20.0', openssl: '3.0.8+quic', cldr: '42.0', icu: '72.1', tz: '2022g', unicode: '15.0', ngtcp2: '0.8.1', nghttp3: '0.7.0' }.

Let me add that I didn't have npm and nodejs installed before I upgraded nodejs version with the "npm install -g n" thing.

Thanks for the help.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions