I have written a shell script as below
export MONGO_DBNAME=dev-db
export MONGO_HOST=a.b.c.c.d:27017,w.x.y.z:27017
export MONGO_PORT=27017
export MONGO_USERNAME=devuser
export MONGO_PASSWORD=devpassword
export MONGO_REPLICASET=devreplicaset
babel-node email-report.js
the environment variables declared are not accessible within the node script using process.env
Can someone please help with why is this happening and how can it be resolved?