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
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
Failed to find .env file at default paths: [./.env,./.env.js,./.env.json]
Add -r since .env is a file and we want to read the content of it.
I also changed the default paths and added some of my paths to work smoothly on the localhost.
If you need to add the local paths then follow {node-modules -> env-cmd -> dist -> get-env-vars} in here you will get an array of default paths, add your path
"dev": "env-cmd -r ./src/config nodemon src/index.js" do this way
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.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us