remove exec and shell_exec in php.ini
it's work to me.
Create a auth.json file on root of your project with following code:
{ "http-basic": { "repo.magento.com": { "username":"<public-key>", "password": "<private-key>" } } }
Replace your public and private keys in double quotes without arrow signs. That should work.
facing similar issue.. any solution?
Yes, I have tried this.
Thanks for sharing here.