I did not use the sudo when installing doctrine in symfony So this is what i got..
The \"https://flex.symfony.com/aliases.json\" file could not be downloaded: f
I solved the issue by removing doctrine and reinstall the package :) and now the env file looks like it should :)