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 ERESOLVEnpm ERR! ERESOLVE could not resolvenpm ERR!npm ERR! While resolving: repo-pack01@0.0.0npm ERR! Found: @angular/compiler@17.0.9npm ERR! node_modules/@angular/compilernpm ERR! @angular/compiler@"^17.0.0" from the root projectnpm ERR! peer @angular/compiler@"17.0.9" from @angular/compiler-cli@17.0.9npm ERR! node_modules/@angular/compiler-clinpm ERR! dev @angular/compiler-cli@"~17.0.0" from the root projectnpm ERR! peer @angular/compiler-cli@"^17.0.0" from @angular-devkit/build-angular@17.0.10npm ERR! node_modules/@angular-devkit/build-angularnpm ERR! dev @angular-devkit/build-angular@"~17.0.0" from the root projectnpm ERR!npm ERR! Could not resolve dependency:npm ERR! @angular/platform-browser-dynamic@"^17.0.0" from the root projectnpm ERR!npm ERR! Conflicting peer dependency: @angular/compiler@17.1.1npm ERR! node_modules/@angular/compilernpm ERR! peer @angular/compiler@"17.1.1" from @angular/platform-browser-dynamic@17.1.1npm ERR! node_modules/@angular/platform-browser-dynamicnpm ERR! @angular/platform-browser-dynamic@"^17.0.0" 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!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_USERNAMEnpm config set //packages.infragistics.com/npm/js-licensed/:email=YOUR_IG_EMAILnpm 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.
Hello Michael,
You are correct the command generates node_modules folder.
I tried to replicate your issue with a setup similar to what you have - Angular CLI - 17.1.1, Node.js - 20.10.0 and Package Manager - npm 10.2.3. When running the following command, it executes without any issue and a project is created without any dependency conflicts:
ng new newAngularProject --collection="@igniteui/angular-schematics" --template=side-nav
When looking at the log file, some dependencies require @angular/compiler 17.0.9 while another require 17.1.1. One way of resolving this is to use either npm i with -force or --legacy-peer-deps flag.
Another thing that you can try is resolving the conflicts manually in the package.json file. Below I am attaching the package.json file that was generated on my side, which you can use as a reference.
Please let me know if you have any questions.
Regards, Ivan Kitanov
package-lock.zip
Hi ,
When I run ng new RepoPack01 --collection="@igniteui/angular-schematics" --template=side-nav isn't it supposed to create node_modules and create project that can be run ? Because it is getting broken while executing and does not reach the end.. There were log files attached, may be you know why it happened..
If you have not specified specific version of igniteUI for Angular, then the latest stable version should be installed, additionally the igniteui-angular and Angular major versions should be the same i.e. if igniteui-angular version is 17.x.x the Angular version should also be 17.y.y, when looking at your package package-lock.json I see that both are targeting version 17 so they are compatible.
Regarding the “'@igniteui/angular-schematics' is not a dependency.” Issue, have you tried running npm install before updating? I believe the issue is caused by not having node_modules folder.
Once you have performed the installation, please try following the Step-by-Step, for adding a control and try running the application.
What I need steps how to sync schematics with angular and create new project.. it should be some exact steps how to fix it..
0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js 1 info using npm@10.2.3 2 info using node@v20.10.0 3 timing npm:load:whichnode Completed in 2ms 4 timing config:load:defaults Completed in 3ms 5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 2ms 6 timing config:load:builtin Completed in 3ms 7 timing config:load:cli Completed in 1ms 8 timing config:load:env Completed in 1ms 9 timing config:load:file:C:\_ngIG\RepoPack01\.npmrc Completed in 1ms 10 timing config:load:project Completed in 2ms 11 timing config:load:file:C:\Users\gkheysin\.npmrc Completed in 1ms 12 timing config:load:user Completed in 1ms 13 timing config:load:file:C:\Users\gkheysin\AppData\Roaming\npm\etc\npmrc Completed in 1ms 14 timing config:load:global Completed in 1ms 15 timing config:load:setEnvs Completed in 1ms 16 timing config:load Completed in 13ms 17 timing npm:load:configload Completed in 13ms 18 timing config:load:flatten Completed in 1ms 19 timing npm:load:mkdirpcache Completed in 1ms 20 timing npm:load:mkdirplogs Completed in 1ms 21 verbose title npm install 22 verbose argv "install" "--ignore-scripts" 23 timing npm:load:setTitle Completed in 0ms 24 timing npm:load:display Completed in 1ms 25 verbose logfile logs-max:10 dir:C:\Users\gkheysin\AppData\Local\npm-cache\_logs\2024-01-29T18_15_52_374Z- 26 verbose logfile C:\Users\gkheysin\AppData\Local\npm-cache\_logs\2024-01-29T18_15_52_374Z-debug-0.log 27 timing npm:load:logFile Completed in 17ms 28 timing npm:load:timers Completed in 0ms 29 timing npm:load:configScope Completed in 0ms 30 timing npm:load Completed in 72ms 31 timing arborist:ctor Completed in 1ms 32 silly logfile start cleaning logs, removing 1 files 33 silly logfile done cleaning log files 34 timing arborist:ctor Completed in 0ms 35 timing idealTree:init Completed in 14ms 36 timing idealTree:userRequests Completed in 0ms 37 silly idealTree buildDeps 38 silly fetch manifest @angular/animations@^17.0.0 39 http fetch GET 200 https://registry.npmjs.org/@angular%2fanimations 36ms (cache hit) 40 silly fetch manifest @angular/core@^17.0.0 41 http fetch GET 200 https://registry.npmjs.org/@angular%2fcore 32ms (cache hit) 42 silly fetch manifest rxjs@~7.8.0 43 http fetch GET 200 https://registry.npmjs.org/rxjs 29ms (cache hit) 44 silly fetch manifest zone.js@~0.14.2 45 http fetch GET 200 https://registry.npmjs.org/zone.js 24ms (cache hit) 46 silly fetch manifest @angular/common@^17.0.0 47 http fetch GET 200 https://registry.npmjs.org/@angular%2fcommon 29ms (cache hit) 48 silly fetch manifest @angular/compiler@^17.0.0 49 http fetch GET 200 https://registry.npmjs.org/@angular%2fcompiler 32ms (cache hit) 50 silly fetch manifest @angular/forms@^17.0.0 51 http fetch GET 200 https://registry.npmjs.org/@angular%2fforms 33ms (cache hit) 52 silly fetch manifest @angular/platform-browser@^17.0.0 53 http fetch GET 200 https://registry.npmjs.org/@angular%2fplatform-browser 31ms (cache hit) 54 silly fetch manifest @angular/platform-browser-dynamic@^17.0.0 55 http fetch GET 200 https://registry.npmjs.org/@angular%2fplatform-browser-dynamic 32ms (cache hit) 56 silly fetch manifest @angular/router@^17.0.0 57 http fetch GET 200 https://registry.npmjs.org/@angular%2frouter 31ms (cache hit) 58 silly fetch manifest hammerjs@^2.0.8 59 http fetch GET 200 https://registry.npmjs.org/hammerjs 460ms (cache revalidated) 60 silly fetch manifest igniteui-angular@~17.0.0 61 http fetch GET 200 https://registry.npmjs.org/igniteui-angular 396ms (cache revalidated) 62 silly fetch manifest minireset.css@~0.0.7 63 http fetch GET 200 https://registry.npmjs.org/minireset.css 387ms (cache revalidated) 64 silly fetch manifest tslib@^2.3.0 65 http fetch GET 200 https://registry.npmjs.org/tslib 24ms (cache hit) 66 silly fetch manifest @angular-devkit/build-angular@~17.0.0 67 http fetch GET 200 https://registry.npmjs.org/@angular-devkit%2fbuild-angular 25ms (cache hit) 68 silly fetch manifest @angular/compiler-cli@~17.0.0 69 http fetch GET 200 https://registry.npmjs.org/@angular%2fcompiler-cli 29ms (cache hit) 70 silly fetch manifest @angular/compiler@17.0.9 71 silly fetch manifest @angular/core@17.0.9 72 silly fetch manifest typescript@~5.2.2 73 http fetch GET 200 https://registry.npmjs.org/typescript 40ms (cache hit) 74 silly fetch manifest @angular/localize@^17.0.0 75 http fetch GET 200 https://registry.npmjs.org/@angular%2flocalize 33ms (cache hit) 76 silly fetch manifest @angular/compiler@17.1.1 77 silly fetch manifest @angular/core@17.1.1 78 silly fetch manifest rxjs@^6.5.3 || ^7.4.0 79 silly fetch manifest zone.js@~0.14.0 80 silly fetch manifest @angular/compiler-cli@17.1.1 81 silly fetch manifest typescript@>=5.2 <5.4 82 silly fetch manifest @angular/platform-server@^17.0.0 83 http fetch GET 200 https://registry.npmjs.org/@angular%2fplatform-server 28ms (cache hit) 84 silly fetch manifest @angular/service-worker@^17.0.0 85 http fetch GET 200 https://registry.npmjs.org/@angular%2fservice-worker 29ms (cache hit) 86 silly fetch manifest jest@^29.5.0 87 http fetch GET 200 https://registry.npmjs.org/jest 29ms (cache hit) 88 silly fetch manifest node-notifier@^8.0.1 || ^9.0.0 || ^10.0.0 89 http fetch GET 200 https://registry.npmjs.org/node-notifier 24ms (cache hit) 90 silly fetch manifest jest-environment-jsdom@^29.5.0 91 http fetch GET 200 https://registry.npmjs.org/jest-environment-jsdom 26ms (cache hit) 92 silly fetch manifest canvas@^2.5.0 93 http fetch GET 200 https://registry.npmjs.org/canvas 26ms (cache hit) 94 silly fetch manifest karma@~6.4.0 95 http fetch GET 200 https://registry.npmjs.org/karma 26ms (cache hit) 96 silly fetch manifest ng-packagr@^17.0.0 97 http fetch GET 200 https://registry.npmjs.org/ng-packagr 28ms (cache hit) 98 silly fetch manifest tailwindcss@^2.0.0 || ^3.0.0 99 http fetch GET 200 https://registry.npmjs.org/tailwindcss 29ms (cache hit) 100 silly fetch manifest protractor@^7.0.0 101 http fetch GET 200 https://registry.npmjs.org/protractor 34ms (cache hit) 102 silly fetch manifest @angular-eslint/builder@^17.0.0 103 http fetch GET 200 https://registry.npmjs.org/@angular-eslint%2fbuilder 101ms (cache revalidated) 104 silly fetch manifest eslint@^8.52.0 105 http fetch GET 200 https://registry.npmjs.org/eslint 66ms (cache revalidated) 106 silly fetch manifest @angular-eslint/eslint-plugin@^17.0.0 107 http fetch GET 200 https://registry.npmjs.org/@angular-eslint%2feslint-plugin 100ms (cache revalidated) 108 silly fetch manifest @angular-eslint/eslint-plugin-template@^17.0.0 109 http fetch GET 200 https://registry.npmjs.org/@angular-eslint%2feslint-plugin-template 99ms (cache revalidated) 110 silly fetch manifest @angular-eslint/schematics@^17.0.0 111 http fetch GET 200 https://registry.npmjs.org/@angular-eslint%2fschematics 159ms (cache revalidated) 112 silly fetch manifest @angular/cli@~17.0.0 113 http fetch GET 200 https://registry.npmjs.org/@angular%2fcli 28ms (cache hit) 114 silly fetch manifest @angular-eslint/template-parser@^17.0.0 115 http fetch GET 200 https://registry.npmjs.org/@angular-eslint%2ftemplate-parser 169ms (cache revalidated) 116 silly fetch manifest @types/jasmine@~5.1.1 117 http fetch GET 200 https://registry.npmjs.org/@types%2fjasmine 35ms (cache hit) 118 silly fetch manifest @typescript-eslint/eslint-plugin@6.9.1 119 http fetch GET 200 https://registry.npmjs.org/@typescript-eslint%2feslint-plugin 265ms (cache updated) 120 silly fetch manifest @typescript-eslint/parser@6.9.1 121 http fetch GET 200 https://registry.npmjs.org/@typescript-eslint%2fparser 229ms (cache updated) 122 silly fetch manifest @igniteui/angular-schematics@~17.1.1314 123 http fetch GET 200 https://registry.npmjs.org/@igniteui%2fangular-schematics 791ms (cache revalidated) 124 silly fetch manifest jasmine-core@~5.1.0 125 http fetch GET 200 https://registry.npmjs.org/jasmine-core 26ms (cache hit) 126 silly fetch manifest karma-chrome-launcher@~3.2.0 127 http fetch GET 200 https://registry.npmjs.org/karma-chrome-launcher 22ms (cache hit) 128 silly fetch manifest karma-coverage@~2.2.0 129 http fetch GET 200 https://registry.npmjs.org/karma-coverage 24ms (cache hit) 130 silly fetch manifest karma-jasmine@~5.1.0 131 http fetch GET 200 https://registry.npmjs.org/karma-jasmine 23ms (cache hit) 132 silly fetch manifest karma-jasmine-html-reporter@~2.1.0 133 http fetch GET 200 https://registry.npmjs.org/karma-jasmine-html-reporter 25ms (cache hit) 134 silly placeDep ROOT @angular-devkit/build-angular@17.0.10 OK for: repo-pack01@0.0.0 want: ~17.0.0 135 silly placeDep ROOT @angular/compiler-cli@17.0.9 OK for: @angular-devkit/build-angular@17.0.10 want: ^17.0.0 136 silly placeDep ROOT @angular/compiler@17.0.9 OK for: @angular/compiler-cli@17.0.9 want: 17.0.9 137 silly placeDep ROOT typescript@5.2.2 OK for: @angular/compiler-cli@17.0.9 want: >=5.2 <5.3 138 silly fetch manifest @ampproject/remapping@2.2.1 139 silly fetch manifest @angular-devkit/architect@0.1700.10 140 silly fetch manifest @angular-devkit/build-webpack@0.1700.10 141 silly fetch manifest @angular-devkit/core@17.0.10 142 silly fetch manifest @babel/core@7.23.2 143 silly fetch manifest @babel/generator@7.23.0 144 silly fetch manifest @babel/helper-annotate-as-pure@7.22.5 145 silly fetch manifest @babel/helper-split-export-declaration@7.22.6 146 silly fetch manifest @babel/plugin-transform-async-generator-functions@7.23.2 147 silly fetch manifest @babel/plugin-transform-async-to-generator@7.22.5 148 silly fetch manifest @babel/plugin-transform-runtime@7.23.2 149 silly fetch manifest @babel/preset-env@7.23.2 150 silly fetch manifest @babel/runtime@7.23.2 151 silly fetch manifest @discoveryjs/json-ext@0.5.7 152 silly fetch manifest @ngtools/webpack@17.0.10 153 silly fetch manifest @vitejs/plugin-basic-ssl@1.0.1 154 silly fetch manifest ansi-colors@4.1.3 155 silly fetch manifest autoprefixer@10.4.16 156 silly fetch manifest babel-loader@9.1.3 157 silly fetch manifest babel-plugin-istanbul@6.1.1 158 silly fetch manifest browserslist@^4.21.5 159 silly fetch manifest browser-sync@2.29.3 160 silly fetch manifest chokidar@3.5.3 161 silly fetch manifest copy-webpack-plugin@11.0.0 162 silly fetch manifest critters@0.0.20 163 silly fetch manifest css-loader@6.8.1 164 silly fetch manifest esbuild-wasm@0.19.5 165 silly fetch manifest fast-glob@3.3.1 166 silly fetch manifest https-proxy-agent@7.0.2 167 silly fetch manifest http-proxy-middleware@2.0.6 168 silly fetch manifest inquirer@9.2.11 169 silly fetch manifest jsonc-parser@3.2.0 170 silly fetch manifest karma-source-map-support@1.4.0 171 silly fetch manifest less@4.2.0 172 silly fetch manifest less-loader@11.1.0 173 silly fetch manifest license-webpack-plugin@4.0.2 174 silly fetch manifest loader-utils@3.2.1 175 silly fetch manifest magic-string@0.30.5 176 silly fetch manifest mini-css-extract-plugin@2.7.6 177 silly fetch manifest mrmime@1.0.1 178 silly fetch manifest open@8.4.2 179 silly fetch manifest ora@5.4.1 180 silly fetch manifest parse5-html-rewriting-stream@7.0.0 181 silly fetch manifest picomatch@3.0.1 182 silly fetch manifest piscina@4.1.0 183 silly fetch manifest postcss@8.4.31 184 silly fetch manifest postcss-loader@7.3.3 185 silly fetch manifest resolve-url-loader@5.0.0 186 silly fetch manifest rxjs@7.8.1 187 silly fetch manifest sass@1.69.5 188 silly fetch manifest sass-loader@13.3.2 189 silly fetch manifest semver@7.5.4 190 silly fetch manifest source-map-loader@4.0.1 191 silly fetch manifest source-map-support@0.5.21 192 silly fetch manifest terser@5.24.0 193 silly fetch manifest text-table@0.2.0 194 silly fetch manifest tree-kill@1.2.2 195 silly fetch manifest tslib@2.6.2 196 silly fetch manifest undici@5.27.2 197 silly fetch manifest vite@4.5.1 198 silly fetch manifest webpack@5.89.0 199 silly fetch manifest webpack-dev-middleware@6.1.1 200 silly fetch manifest webpack-dev-server@4.15.1 201 silly fetch manifest webpack-merge@5.10.0 202 silly fetch manifest webpack-subresource-integrity@5.1.0 203 silly fetch manifest esbuild@0.19.5 204 silly fetch manifest @jridgewell/sourcemap-codec@^1.4.14 205 silly fetch manifest reflect-metadata@^0.1.2 206 silly fetch manifest chokidar@^3.0.0 207 silly fetch manifest convert-source-map@^1.5.1 208 silly fetch manifest semver@^7.0.0 209 silly fetch manifest yargs@^17.2.1 210 silly placeDep ROOT @angular-eslint/builder@17.2.1 OK for: repo-pack01@0.0.0 want: ^17.0.0 211 silly placeDep ROOT eslint@8.56.0 OK for: @angular-eslint/builder@17.2.1 want: ^7.20.0 || ^8.0.0 212 silly fetch manifest @nx/devkit@17.2.8 213 silly fetch manifest nx@17.2.8 214 silly fetch manifest @eslint-community/eslint-utils@^4.2.0 215 silly fetch manifest @eslint-community/regexpp@^4.6.1 216 silly fetch manifest @eslint/eslintrc@^2.1.4 217 silly fetch manifest @eslint/js@8.56.0 218 silly fetch manifest @humanwhocodes/config-array@^0.11.13 219 silly fetch manifest @humanwhocodes/module-importer@^1.0.1 220 silly fetch manifest @nodelib/fs.walk@^1.2.8 221 silly fetch manifest @ungap/structured-clone@^1.2.0 222 silly fetch manifest ajv@^6.12.4 223 silly fetch manifest chalk@^4.0.0 224 silly fetch manifest cross-spawn@^7.0.2 225 silly fetch manifest debug@^4.3.2 226 silly fetch manifest doctrine@^3.0.0 227 silly fetch manifest escape-string-regexp@^4.0.0 228 silly fetch manifest eslint-scope@^7.2.2 229 silly fetch manifest eslint-visitor-keys@^3.4.3 230 silly fetch manifest espree@^9.6.1 231 silly fetch manifest esquery@^1.4.2 232 silly fetch manifest esutils@^2.0.2 233 silly fetch manifest fast-deep-equal@^3.1.3 234 silly fetch manifest file-entry-cache@^6.0.1 235 silly fetch manifest find-up@^5.0.0 236 silly fetch manifest glob-parent@^6.0.2 237 silly fetch manifest globals@^13.19.0 238 silly fetch manifest graphemer@^1.4.0 239 silly fetch manifest ignore@^5.2.0 240 silly fetch manifest imurmurhash@^0.1.4 241 silly fetch manifest is-glob@^4.0.0 242 silly fetch manifest is-path-inside@^3.0.3 243 silly fetch manifest js-yaml@^4.1.0 244 silly fetch manifest json-stable-stringify-without-jsonify@^1.0.1 245 silly fetch manifest levn@^0.4.1 246 silly fetch manifest lodash.merge@^4.6.2 247 silly fetch manifest minimatch@^3.1.2 248 silly fetch manifest natural-compare@^1.4.0 249 silly fetch manifest optionator@^0.9.3 250 silly fetch manifest strip-ansi@^6.0.1 251 silly fetch manifest text-table@^0.2.0 252 silly placeDep ROOT @angular-eslint/eslint-plugin@17.2.1 OK for: repo-pack01@0.0.0 want: ^17.0.0 253 silly fetch manifest @angular-eslint/utils@17.2.1 254 silly fetch manifest @typescript-eslint/utils@6.19.0 255 silly placeDep ROOT @angular-eslint/eslint-plugin-template@17.2.1 OK for: repo-pack01@0.0.0 want: ^17.0.0 256 silly fetch manifest @angular-eslint/bundled-angular-compiler@17.2.1 257 silly fetch manifest @typescript-eslint/type-utils@6.19.0 258 silly fetch manifest aria-query@5.3.0 259 silly fetch manifest axobject-query@4.0.0 260 silly placeDep ROOT @angular-eslint/schematics@17.2.1 OK for: repo-pack01@0.0.0 want: ^17.0.0 261 silly placeDep ROOT @angular/cli@17.0.10 OK for: @angular-eslint/schematics@17.2.1 want: >= 17.0.0 < 18.0.0 262 silly fetch manifest ignore@5.3.0 263 silly fetch manifest strip-json-comments@3.1.1 264 silly fetch manifest tmp@0.2.1 265 silly fetch manifest @angular-devkit/schematics@17.0.10 266 silly fetch manifest @schematics/angular@17.0.10 267 silly fetch manifest @yarnpkg/lockfile@1.1.0 268 silly fetch manifest ini@4.1.1 269 silly fetch manifest npm-package-arg@11.0.1 270 silly fetch manifest npm-pick-manifest@9.0.0 271 silly fetch manifest pacote@17.0.4 272 silly fetch manifest resolve@1.22.8 273 silly fetch manifest symbol-observable@4.0.0 274 silly fetch manifest yargs@17.7.2 275 silly placeDep ROOT @angular-eslint/template-parser@17.2.1 OK for: repo-pack01@0.0.0 want: ^17.0.0 276 silly fetch manifest eslint-scope@^8.0.0 277 silly placeDep ROOT @angular/animations@17.1.1 OK for: repo-pack01@0.0.0 want: ^17.0.0 278 silly placeDep ROOT @angular/core@17.1.1 OK for: @angular/animations@17.1.1 want: 17.1.1 279 silly placeDep ROOT rxjs@7.8.1 OK for: @angular/core@17.1.1 want: ^6.5.3 || ^7.4.0 280 silly placeDep ROOT zone.js@0.14.3 OK for: @angular/core@17.1.1 want: ~0.14.0 281 silly fetch manifest tslib@^2.1.0 282 silly placeDep ROOT @angular/common@17.1.1 OK for: repo-pack01@0.0.0 want: ^17.0.0 283 silly placeDep ROOT @angular/forms@17.1.1 OK for: repo-pack01@0.0.0 want: ^17.0.0 284 silly placeDep ROOT @angular/platform-browser@17.1.1 OK for: @angular/forms@17.1.1 want: 17.1.1 285 timing idealTree Completed in 4613ms 286 timing command:install Completed in 4618ms 287 verbose stack Error: could not resolve 287 verbose stack at PlaceDep.failPeerConflict (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:503:25) 287 verbose stack at new PlaceDep (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:157:21) 287 verbose stack at #buildDepStep (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:933:18) 287 verbose stack at async Arborist.buildIdealTree (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:196:7) 287 verbose stack at async Promise.all (index 1) 287 verbose stack at async Arborist.reify (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:159:5) 287 verbose stack at async Install.exec (C:\Program Files\nodejs\node_modules\npm\lib\commands\install.js:152:5) 287 verbose stack at async module.exports (C:\Program Files\nodejs\node_modules\npm\lib\cli-entry.js:61:5) 288 verbose cwd C:\_ngIG\RepoPack01 289 verbose Windows_NT 10.0.19045 290 verbose node v20.10.0 291 verbose npm v10.2.3 292 error code ERESOLVE 293 error ERESOLVE could not resolve 294 error 295 error While resolving: repo-pack01@0.0.0 295 error Found: @angular/compiler@17.0.9 295 error node_modules/@angular/compiler 295 error @angular/compiler@"^17.0.0" from the root project 295 error peer @angular/compiler@"17.0.9" from @angular/compiler-cli@17.0.9 295 error node_modules/@angular/compiler-cli 295 error dev @angular/compiler-cli@"~17.0.0" from the root project 295 error peer @angular/compiler-cli@"^17.0.0" from @angular-devkit/build-angular@17.0.10 295 error node_modules/@angular-devkit/build-angular 295 error dev @angular-devkit/build-angular@"~17.0.0" from the root project 295 error 295 error Could not resolve dependency: 295 error @angular/platform-browser-dynamic@"^17.0.0" from the root project 295 error 295 error Conflicting peer dependency: @angular/compiler@17.1.1 295 error node_modules/@angular/compiler 295 error peer @angular/compiler@"17.1.1" from @angular/platform-browser-dynamic@17.1.1 295 error node_modules/@angular/platform-browser-dynamic 295 error @angular/platform-browser-dynamic@"^17.0.0" from the root project 295 error 295 error Fix the upstream dependency conflict, or retry 295 error this command with --force or --legacy-peer-deps 295 error to accept an incorrect (and potentially broken) dependency resolution. 296 error 296 error 296 error For a full report see: 296 error C:\Users\gkheysin\AppData\Local\npm-cache\_logs\2024-01-29T18_15_52_374Z-eresolve-report.txt 297 verbose exit 1 298 timing npm Completed in 6466ms 299 verbose unfinished npm timer reify 1706552154219 300 verbose unfinished npm timer reify:loadTrees 1706552154221 301 verbose unfinished npm timer idealTree:buildDeps 1706552154236 302 verbose unfinished npm timer idealTree:#root 1706552154236 303 verbose code 1 304 error A complete log of this run can be found in: C:\Users\gkheysin\AppData\Local\npm-cache\_logs\2024-01-29T18_15_52_374Z-debug-0.log
'Log files: C:\Users\gkheysin\AppData\Local\npm-cache\_logs\2024-01-29T18_15_52_374Z-debug-0.log # npm resolution error report While resolving: repo-pack01@0.0.0 Found: @angular/compiler@17.0.9 node_modules/@angular/compiler @angular/compiler@"^17.0.0" from the root project peer @angular/compiler@"17.0.9" from @angular/compiler-cli@17.0.9 node_modules/@angular/compiler-cli dev @angular/compiler-cli@"~17.0.0" from the root project peer @angular/compiler-cli@"^17.0.0" from @angular-devkit/build-angular@17.0.10 node_modules/@angular-devkit/build-angular dev @angular-devkit/build-angular@"~17.0.0" from the root project Could not resolve dependency: @angular/platform-browser-dynamic@"^17.0.0" from the root project Conflicting peer dependency: @angular/compiler@17.1.1 node_modules/@angular/compiler peer @angular/compiler@"17.1.1" from @angular/platform-browser-dynamic@17.1.1 node_modules/@angular/platform-browser-dynamic @angular/platform-browser-dynamic@"^17.0.0" from the root project Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.
Attempts to update schematics failed
C:\_ngIG\RepoPack01>ng update @igniteui/angular-schematicsUsing package manager: npmCollecting installed dependencies...Found 0 dependencies.Package '@igniteui/angular-schematics' is not a dependency.
Angular version :
ngular CLI: 17.1.1Node: 20.10.0Package Manager: npm 10.2.3OS: win32 x64
Angular:...
Package Version------------------------------------------------------@angular-devkit/architect 0.1701.1 (cli-only)@angular-devkit/core 17.1.1 (cli-only)@angular-devkit/schematics 17.1.1 (cli-only)@schematics/angular 17.1.1 (cli-only)
so I deleted previous runs.. and started from the beginning
still not working.. what should I do .. attached logs and created package & angular JSON files
The ng new xxxx would create project with no problem..
{ "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "repo-pack01": { "projectType": "application", "schematics": { "@schematics/angular:component": { "style": "scss" } }, "root": "", "sourceRoot": "src", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:application", "options": { "outputPath": "dist/repo-pack01", "index": "src/index.html", "browser": "src/main.ts", "polyfills": [ "zone.js" ], "tsConfig": "tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": [ "src/favicon.ico", "src/assets" ], "styles": [ "src/styles.scss" ], "scripts": [ "./node_modules/hammerjs/hammer.min.js" ], "stylePreprocessorOptions": { "includePaths": [ "node_modules" ] } }, "configurations": { "production": { "budgets": [ { "type": "initial", "maximumWarning": "500kb", "maximumError": "1mb" }, { "type": "anyComponentStyle", "maximumWarning": "2kb", "maximumError": "4kb" } ], "outputHashing": "all" }, "development": { "optimization": false, "extractLicenses": false, "sourceMap": true } }, "defaultConfiguration": "production" }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { "buildTarget": "repo-pack01:build:production" }, "development": { "buildTarget": "repo-pack01:build:development" } }, "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { "buildTarget": "repo-pack01:build" } }, "test": { "builder": "@angular-devkit/build-angular:karma", "options": { "polyfills": [ "zone.js", "zone.js/testing" ], "tsConfig": "tsconfig.spec.json", "inlineStyleLanguage": "scss", "assets": [ "src/favicon.ico", "src/assets" ], "styles": [ "src/styles.scss" ], "scripts": [] } } } } } }
{ "name": "repo-pack01", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve -o", "build": "ng build", "watch": "ng build --watch --configuration development", "test": "ng test" }, "private": true, "dependencies": { "@angular/animations": "^17.0.0", "@angular/common": "^17.0.0", "@angular/compiler": "^17.0.0", "@angular/core": "^17.0.0", "@angular/forms": "^17.0.0", "@angular/platform-browser": "^17.0.0", "@angular/platform-browser-dynamic": "^17.0.0", "@angular/router": "^17.0.0", "hammerjs": "^2.0.8", "igniteui-angular": "~17.0.0", "minireset.css": "~0.0.7", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.14.2" }, "devDependencies": { "@angular-devkit/build-angular": "~17.0.0", "@angular-eslint/builder": "^17.0.0", "@angular-eslint/eslint-plugin": "^17.0.0", "@angular-eslint/eslint-plugin-template": "^17.0.0", "@angular-eslint/schematics": "^17.0.0", "@angular-eslint/template-parser": "^17.0.0", "@angular/cli": "~17.0.0", "@angular/compiler-cli": "~17.0.0", "@types/jasmine": "~5.1.1", "@typescript-eslint/eslint-plugin": "6.9.1", "@typescript-eslint/parser": "6.9.1", "eslint": "^8.52.0", "@igniteui/angular-schematics": "~17.1.1314", "jasmine-core": "~5.1.0", "karma": "~6.4.0", "karma-chrome-launcher": "~3.2.0", "karma-coverage": "~2.2.0", "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "~2.1.0", "typescript": "~5.2.2" } }