Closed KanCiGamer closed 8 months ago
I just want to install laravel/socialite but every time I install it, it deletes default packages like framework or tinker.. and crashes my whole project. I don't know how to fix it
composer require
doesn't have the ability to delete other requirements.
@crynobone I don't know what I installed wrong that caused this problem. You can see the information when I used composer require below:
`PS E:\TestAPI\GoogleAPI2> composer require laravel/socialite
D:\Composer has been updated
Running composer update laravel/socialite
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 44 installs, 3 updates, 64 removals
composer fund
command to find out more!
No security vulnerability advisories found.
Using version ^5.12 for laravel/socialite`Running composer update laravel/socialite
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Based on above information it's clear that:
laravel/socialite
requirements already exists in composer.lock
.laravel/framework
requirements is not available in composer.lock
.So what exactly should I do? I'm new and don't know how to determine exactly how to fix it. Please help me, thank you
I have solved the problem
Socialite Version
^5.12
Laravel Version
^10.10
PHP Version
^8.1
Database Driver & Version
MySQL 8.2.0
Description
When I use the command: Composer require laravel/socialite, it removes default packages like tinker, framework which affects my project and it cannot launch. I also cannot reinstall those packages using the composer update... command. My composer.json:
Steps To Reproduce
I don't do this step