Thanks @sarav_prakash for your help.Now, my package.json file has this details: { "name": "testProj", "version": "0.0.1", "engine":{"node":">=20"}, "dependencies": { Also, removed these lines from the projectimport dotenv from 'dotenv';dotenv.config(); To access the env fileconst env = process...