Error: Failed to find .env file at default paths: [./.env,./.env.js,./.env.json] code example
Example 1: Failed to find .env file at default paths: [./.env,./.env.js,./.env.json]
Add -f to your package.json file, Ex: env-cmd -f ./config/dev.env nodemon src/index.js
Example 2: Failed to find .env file at default
You can rename .env.development to just .env and then run env-cmd gatsby develop, this will look for environment variables inside .env file.