Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with command: composer require gloudemans/shoppingcart #665

Open
mohamedmehdigara opened this issue Jan 7, 2022 · 1 comment
Open

Comments

@mohamedmehdigara
Copy link

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>

@achyutkneupane
Copy link

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants