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
I had same problem,
i tried below code
env-cmd -f ./config/myvar.env
its not working for me.
Instead i add full path of config folder like below and its works like charm..!!!!
env-cmd -f fullPath/config/myvar.env