I’m trying to make my first Laravel app with React on the front-end using Breeze. I followed the instructions and installed PHP and Composer. Now trying to set up the Laravel app according to the instructions here and here, I run the commands
composer create-project laravel/laravel:^11.0 app
cd app
composer require laravel/breeze --dev
php artisan breeze:install
wherein I am met with the following error from NPM
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @tanstack/[email protected].
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
I’ve narrowed down the issue as being part of the @headlessui/react
dependency, but I’m completely stumped on what to do about it, other than just not using the library.
2
Answers
I ran into the same problem, I was able to work around it for my application to continue running however, I lowered the version of the @headlessui/react beneath 2.0.0 inside the devDependencies in the package.json and then ran npm install. Good luck!
Rolling back to version 2.1.1 solved the issue for me. You can find more details in the official repository: https://github.com/tailwindlabs/headlessui/issues/3430