From cb27d4dfe7670e6cf50f09b48cbd37ac73aa064a Mon Sep 17 00:00:00 2001 From: Michael Naumov Date: Mon, 17 Jun 2024 12:44:40 +0300 Subject: [PATCH] fix: minimum Node version in warning for `module.register()` (#592) --- src/esm/api/register.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/esm/api/register.ts b/src/esm/api/register.ts index f5bf2b13..89c9f0c6 100644 --- a/src/esm/api/register.ts +++ b/src/esm/api/register.ts @@ -37,7 +37,7 @@ export const register: Register = ( options, ) => { if (!module.register) { - throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.9 or v20.6 and above.`); + throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`); } if (!cjsInteropApplied) {