Topic: Error installation
gabriel Julián pro premium asked 4 years ago
Hi,
I´m trying to start a new project but I can´t.
In this command: sudo npm i git+https://oauth2:my-token@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git
An error occurs, this is the error:
npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency treenpm ERR! npm ERR! While resolving: frontend@0.0.0npm ERR! Found: @angular/animations@11.1.0npm ERR! node_modules/@angular/animationsnpm ERR! @angular/animations@"~11.1.0" from the root projectnpm ERR! npm ERR! Could not resolve dependency:npm ERR! peer @angular/animations@"^10.0.0" from ng-uikit-pro-standard@10.1.1npm ERR! node_modules/ng-uikit-pro-standardnpm ERR! ng-uikit-pro-standard@"git+https://oauth2:token@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git" from the root projectnpm ERR! npm ERR! Fix the upstream dependency conflict, or retrynpm ERR! this command with --force, or --legacy-peer-depsnpm ERR! to accept an incorrect (and potentially broken) dependency resolution.npm ERR! npm ERR! See /Users/gjulian.dev/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:npm ERR! /Users/gjulian.dev/.npm/_logs/2021-01-26T09_51_39_216Z-debug.log
An this is the environment:Angular CLI: 11.1.1Node: 15.2.0OS: darwin x64
Angular: 11.1.0... animations, common, compiler, compiler-cli, core, forms... platform-browser, platform-browser-dynamic, routerIvy Workspace: Yes
Package Version
@angular-devkit/architect 0.1101.1@angular-devkit/build-angular 0.1101.1@angular-devkit/core 11.1.1@angular-devkit/schematics 11.1.1@angular/cli 11.1.1@schematics/angular 11.1.1@schematics/update 0.1101.1rxjs 6.6.3typescript 4.1.3
Resources (screenshots, code snippets etc.)
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Open
- User: Pro
- Premium support: Yes
- Technology: MDB Angular
- MDB Version: 10.1.1
- Device: mac
- Browser: chrome
- OS: macOS BigSur
- Provided sample code: No
- Provided link: Yes
Arkadiusz Idzikowski staff commented 4 years ago
There is a dependency conflict, you installed Angular v11 (and its packages) and our library depends on v10. Please try to create a new project that uses Angular 10 (you can downgrade Angular CLI to v10 and run
ng new
command).