npm install -g win-node-env This will solve problem if not for windows use below commands set NODE_ENV=something node filename.js