npm i dotenv check code example Example: dotenv npm //In CMD npm i dotenv //in JS file require('dotenv').config();