Reputation: 103
Need help figuring out why I get the above error code when I run the command laravel new app-name at the command prompt.
laravel new app-name
PS: connected to internet through a company proxy
Upvotes: 1
Views: 1171
Reputation: 91
Try composer global update it should work
composer global update
Upvotes: 0
Reputation: 917
You can use this command instead of laravel new your-app:
laravel new your-app
composer create-project laravel/laravel your-app --prefer-dist
But make sure your composer is updated first. Take a look at this.
edited: Try the laravel new your-app command after your composer update again.
composer update