We're currently using https://www.npmjs.com/package/dotenv to override npm config values. Coming in v20.6.0 (https://github.com/nodejs/node/pull/48890) this will be native functionality.