I am using the tool env-cmd to manage my environment variables, and am encountering the error:
Error: Failed to find .rc file at default paths: [./.env-cmdrc,./.env-cmdrc.js,./.env-cmdrc.json]
I have verified that the file (in my case ./.env-cmdrc
) does exist in the working directory and has sufficient permissions 644
(anyone can read). The file also contains the expected values.
This is not a result of using the wrong flag/syntax to find the env file as other questions are.
The command being ran is formatted as env-cmd -e ENVIRONMENT_NAME
Why is this error thrown?