Closed gillissm closed 1 year ago
Hi @gillissm - Looks like there is potentially a local cache issue going on due to the version mismatch I see in your output (21.0.8 vs 21.1.0). Can you try clearing any npx/m caches (e.g. npx clear-npx-cache
, npm cache clean -f
) and then try the create-sitecore-jss@latest angular
command again?
@gillissm I'm going to close this one and assume this was a local issue, but please feel free to let me know if you are still able to reproduce on a fresh install.
As a reminder, JSS 21.1.0 included an upgrade from Angular 11 to 14, so there would be expected breaking changes if you tried to install 21.1.0 on top of an existing application using a previous version. Please see release notes for details.
Description
Trying to create a new Angular App with version 21.1.0 of sitecore-jss. After answering create questions, npm install starts then fails out with the following error:
npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: sitecore-jss-app@21.0.8 npm ERR! Found: @angular/common@11.2.14 npm ERR! node_modules/@angular/common npm ERR! @angular/common@"~11.2.6" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/common@"~14.2.10" from @sitecore-jss/sitecore-jss-angular@21.1.0 npm ERR! node_modules/@sitecore-jss/sitecore-jss-angular npm ERR! @sitecore-jss/sitecore-jss-angular@"^21.0.8" 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-----\AppData\Local\npm-cache_logs\2023-03-21T02_04_55_852Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users-----\AppData\Local\npm-cache_logs\2023-03-21T02_04_55_852Z-debug-0.log npm ERR! code 1 npm ERR! path C:\Code\tempsetting npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c create-sitecore-jss
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users-----\AppData\Local\npm-cache_logs\2023-03-21T02_04_41_046Z-debug-0.log
Your Environment
Sitecore Version:
Browser Name and version:
Operating System and version (desktop or mobile): Windows 11