If you're setting up the repository on a new device for the first time, check that you are saving the files before trying to run the command.
In my situation I had set up the .env file with the fields I needed yet hadn't saved it before trying to run the migration command.