diff --git a/lib/deps.js b/lib/deps.js index 81fa996a..e0d1851b 100644 --- a/lib/deps.js +++ b/lib/deps.js @@ -92,7 +92,9 @@ node.StringDecoder = node['string_decoder']; node.perfHooks = node['perf_hooks']; node.asyncHooks = node['async_hooks']; node.fsp = node.fs.promises; -node.timers.promises = require('node:timers/promises'); +if (!node.timers.promises) { + node.timers.promises = require('node:timers/promises'); +} Object.freeze(node); Object.freeze(npm);