Closed waleiwalei closed 9 months ago
Tried with @antfu/ni@0.21.10
(currently latest) in nodejs@16.20.2, it works fine. Any more information or an online reproduction?
@kricsleo the version of ni is 0.21.9
@kricsleo the version of ni is 0.21.9
Sorry, I also tried with 0.21.9
, but it didn't show up. Could you please provide an online reproduction? That would help to resolve your issue.
# Here is my env
ni -v
# @antfu/ni v0.21.9
# node v16.20.2
# npm v8.19.4
# npm -g v8.19.4
We temporarily closed this due to the lack of enough information. We could not identify whether it was a bug or a userland misconfiguration with the given info. Please provide a minimal reproduction to reopen the issue. Thanks.
the node version is 14.17.6 `
ni typescript internal/process/esm_loader.js:74 internalBinding('errors').triggerUncaughtException( ^
Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:timers/promises
at Loader.builtinStrategy (internal/modules/esm/translators.js:285:11)
at new ModuleJob (internal/modules/esm/module_job.js:60:26)
at Loader.getModuleJob (internal/modules/esm/loader.js:258:11)
at async ModuleWrap.
`
ni -v internal/process/esm_loader.js:74 internalBinding('errors').triggerUncaughtException( ^
Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:timers/promises
at Loader.builtinStrategy (internal/modules/esm/translators.js:285:11)
at new ModuleJob (internal/modules/esm/module_job.js:60:26)
at Loader.getModuleJob (internal/modules/esm/loader.js:258:11)
at async ModuleWrap.
Describe the bug
` npm install @antfu/ni -g ni typescript
internal/process/esm_loader.js:74
Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:timers/promises
code: 'ERR_UNKNOWN_BUILTIN_MODULE'
}
script returned exit code 1 `
this error started before 6 days ago.
Reproduction
node@16
System Info
Used Package Manager
pnpm
Validations