I have a file name .env.development in the root folder. I had install env-cmd as dev dependencies
when I start the server
> npm run develop
In my case got this error :
Error: Failed to find .env file at path: .env.local at getEnvFile (E:\project\....)
Then i just rename .env.development
file to .env.local
and it is working fine.
or if you are working on remote git repository then check you have pulled latest changes made by your team member to your local dev environment.