Check Node.js requirements for @nestjs/cache-manager
masterThis package is distributed as ESM only. To avoid ERR_REQUIRE_ESM errors when using require() (which happens in CommonJS applications), you must use a Node.js version where require(esm) is available unflagged.
Supported Node.js versions:
^20.19.0^22.12.0>=24.0.0
If you are using a standard NestJS setup (CommonJS), you can continue using standard import statements; TypeScript will compile them to require(), and the compatible Node.js runtime will handle the ESM loading automatically.