LaravelShoppingcart icon indicating copy to clipboard operation
LaravelShoppingcart copied to clipboard

Error with command: composer require gloudemans/shoppingcart

Open mohamedmehdigara opened this issue 3 years ago • 1 comments

PS C:\xampp\htdocs\LaravelShoppingcart> composer require gloudemans/shoppingcart Using version ^2.6 for gloudemans/shoppingcart Root package 'gloudemans/shoppingcart' cannot require itself in its composer.json PS C:\xampp\htdocs\LaravelShoppingcart>

mohamedmehdigara avatar Jan 07 '22 08:01 mohamedmehdigara

You should run the command composer require gloudemans/shoppingcart inside the project you want to use the shopping cart. You are installing the package inside itself. Create a new Laravel project in htdocs and use the command only after cd {project_name}

achyutkneupane avatar Mar 29 '22 13:03 achyutkneupane