Fixed NODE_ENV error, set default environment to dev