I am updating laravel from composer but getting one error during updating it
Only one of these can be installed: illuminate/filesystem[v9.0.0-beta.1, …, 9.x-dev, v10.0.0, …, 10.x-dev, v11.0.0, …, 11.x-dev], laravel/framework[v10.0.0, …, 10.x-dev]. laravel/framework replaces illuminate/filesystem and thus cannot coexist with it
I check in composer.json file there is no illuminate/filesystem in it.Can anybody tell me how to solve this issue?
I tried to create the composer.js file again but its not solve anything.
2
Answers
Write your composer.json.
illuminate/filesystem
is included inlaravel/framework
.No need to install it separately.
If you are using a third-party composer package, update that package.
you could try
remove the vendor folder ( which deletes all the installed dependencies )
// run the cmd from your project root folder
rm -rf vendor
you could also delete the folder manually or using other tools/cmd
after deleting edit your composer.json by following official upgrade guide
try
composer update
or freshly install the packages using