analogjs / analog

The fullstack meta-framework for Angular. Powered by Vite and Nitro
https://analogjs.org
MIT License
2.5k stars 240 forks source link

npm create analog@latest: npm install fails #1103

Closed alexciesielski closed 3 months ago

alexciesielski commented 3 months ago

Please provide the environment you discovered this bug in.

running npm create analog@latest

Which area/package is the issue in?

create-analog

Description

npm install fails

Please provide the exception or error you saw

npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: alexciesielski.dev@0.0.0
npm ERR! Found: @angular/compiler-cli@17.3.10
npm ERR! node_modules/@angular/compiler-cli
npm ERR!   dev @angular/compiler-cli@"^17.2.0" from the root project
npm ERR!   peer @angular/compiler-cli@"^17.0.0" from @angular-devkit/build-angular@17.3.8
npm ERR!   node_modules/@angular-devkit/build-angular
npm ERR!     dev @angular-devkit/build-angular@"^17.2.0" from the root project
npm ERR!     peer @angular-devkit/build-angular@">=15.0.0 || ^18.0.0-rc.0" from @analogjs/vite-plugin-angular@1.3.1
npm ERR!     node_modules/@analogjs/vite-plugin-angular
npm ERR!       dev @analogjs/vite-plugin-angular@"^1.3.1" from the root project
npm ERR!   2 more (@angular/localize, ng-packagr)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/compiler-cli@"^18.0.0" from @ngtools/webpack@18.0.1
npm ERR! node_modules/@ngtools/webpack
npm ERR!   peer @ngtools/webpack@">=15.0.0 || ^18.0.0-rc.0" from @analogjs/vite-plugin-angular@1.3.1
npm ERR!   node_modules/@analogjs/vite-plugin-angular
npm ERR!     dev @analogjs/vite-plugin-angular@"^1.3.1" 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! /Users/alexciesielski/.npm/_logs/2024-05-24T09_27_42_356Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /Users/alexciesielski/.npm/_logs/2024-05-24T09_27_42_356Z-debug-0.log

running npm i --force does the trick though

brandonroberts commented 3 months ago

Yea, we're in between Angular and Nx releases right now. Using --force or --legacy-peer-deps works with npm.

brandonroberts commented 3 months ago

This is resolved in the latest beta. The next release will go out early next week.

npm create analog@beta my-analog-app