Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
8920
creating new project
posted

Hello : I 've run the following command to create new project 

ng new  RepoPack01  --collection="@igniteui/angular-schematics" --template=side-nav

got this .. why ? 

- Installing packages (npm)...npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: repo-pack01@0.0.0
npm ERR! Found: @angular/compiler@17.0.9
npm ERR! node_modules/@angular/compiler
npm ERR! @angular/compiler@"^17.0.0" from the root project
npm ERR! peer @angular/compiler@"17.0.9" from @angular/compiler-cli@17.0.9
npm ERR! node_modules/@angular/compiler-cli
npm ERR! dev @angular/compiler-cli@"~17.0.0" from the root project
npm ERR! peer @angular/compiler-cli@"^17.0.0" from @angular-devkit/build-angular@17.0.10
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! dev @angular-devkit/build-angular@"~17.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! @angular/platform-browser-dynamic@"^17.0.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @angular/compiler@17.1.1
npm ERR! node_modules/@angular/compiler
npm ERR! peer @angular/compiler@"17.1.1" from @angular/platform-browser-dynamic@17.1.1
npm ERR! node_modules/@angular/platform-browser-dynamic
npm ERR! @angular/platform-browser-dynamic@"^17.0.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.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\gkheysin\AppData\Local\npm-cache\_logs\2024-01-27T03_00_07_402Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\gkheysin\AppData\Local\npm-cache\_logs\2024-01-27T03_00_07_402Z-debug-0.log
× Package install failed, see above.
The Schematic workflow failed. See above.

also when applying this steps : 

npm config set @infragistics:registry packages.infragistics.com/.../
npm config set //packages.infragistics.com/npm/js-licensed/:username=YOUR_USERNAME
npm config set //packages.infragistics.com/npm/js-licensed/:email=YOUR_IG_EMAIL
npm config set //packages.infragistics.com/npm/js-licensed/:_auth=YOUR_IG_AUTH_TOKEN

Is the YOUR_USERNAME is user name on the account or the one shown on the access token page for npm feed.. e-mail I assume from the account.. 

Also is that the  problem that I install both Angular Schematics & Ignite UI CLI .. ? If it is how to uninstall them ? 

Thanks.

  • 8920
    Offline posted

    I updated AngularCLI to the latest : Angular CLI: 17.1.1

    But igniteUI update failed

    C:\_ngIG\RepoPack01>ng update @igniteui/angular-schematics
    Using package manager: npm
    Collecting installed dependencies...
    Found 0 dependencies.
    Package '@igniteui/angular-schematics' is not a dependency.

    C:\_ngIG\RepoPack01>ng update @infragistics/igniteui-angular
    Using package manager: npm
    Collecting installed dependencies...
    Found 0 dependencies.
    Package '@infragistics/igniteui-angular' is not a dependency.

    Also how do you check versions of the @igniteui/angular-schematics and @infragistics/igniteui-angular