-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot load externalized builtin: "internal/deps/cjs-module-lexer/lexer:/usr/lib/node_modules/cjs-module-lexer/lexer.js". #92
Comments
We haven't cooperated that change in any released versions yet, both in Besides, I could not reproduce this on f39 with the following packages:
Does your root filesystem support symlinks? |
Oh, I recalled what's the issue here. libuv made io_uring default from a while ago, and it got merged into Node.js. Unfortunately, the implementation (kernel? libuv?) is currently buggy and had various quirks when doing file I/Os. A workaround is to set |
Seemed to be a kernel regression. Tested with a clean f39 podman container on |
@mochaaP I havent installed fedora 40 yet. I have created a bug report on bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=2276166 |
@guybedford since this isn't a cjs-module-lexer issue but a kernel/libuv/node one, we can close this here. |
I tried this still was having the same error |
Forwarding from rhbz.
|
/tag invalid |
I can confirm that this is happening with Fedora 40 as well. |
Also present in Fedora 41. Steps to reproduce: docker run --rm -it fedora:41
dnf install -y nodejs18 nodejs18-npm
npm-18 --version
Cannot load externalized builtin: "internal/deps/cjs-module-lexer/lexer:/usr/lib/node_modules/cjs-module-lexer/lexer.js".
1: 0x7b39a1be954c node::Abort() [/lib64/libnode.so.108]
2: 0x7b39a1bddb76 [/lib64/libnode.so.108]
3: 0x7b39a1bddcfc node::builtins::BuiltinLoader::BuiltinLoader() [/lib64/libnode.so.108]
4: 0x7b39a1b3e274 node::InitializePrimordials(v8::Local<v8::Context>) [/lib64/libnode.so.108]
5: 0x7b39a1b3e3a8 node::GetPerContextExports(v8::Local<v8::Context>) [/lib64/libnode.so.108]
6: 0x7b39a1b3e198 node::InitializePrimordials(v8::Local<v8::Context>) [/lib64/libnode.so.108]
7: 0x7b39a1b3e480 node::InitializeMainContextForSnapshot(v8::Local<v8::Context>) [/lib64/libnode.so.108]
8: 0x7b39a1b3e4a5 node::InitializeContext(v8::Local<v8::Context>) [/lib64/libnode.so.108]
9: 0x7b39a1b3e503 node::NewContext(v8::Isolate*, v8::Local<v8::ObjectTemplate>) [/lib64/libnode.so.108]
10: 0x7b39a1c49a24 node::NodeMainInstance::CreateMainEnvironment(int*) [/lib64/libnode.so.108]
11: 0x7b39a1c49bab node::NodeMainInstance::Run() [/lib64/libnode.so.108]
12: 0x7b39a1bbd1a3 node::LoadSnapshotDataAndRun(node::SnapshotData const**, node::InitializationResult const*) [/lib64/libnode.so.108]
13: 0x7b39a1bbd649 node::Start(int, char**) [/lib64/libnode.so.108]
14: 0x7b39a10cf248 [/lib64/libc.so.6]
15: 0x7b39a10cf30b __libc_start_main [/lib64/libc.so.6]
16: 0x60d4ed16e035 _start [/usr/bin/node-18]
Aborted (core dumped) Edit: As mentioned by mochaaP; I think this is an issue in the underlying OS implementation/packaging. |
This is because the symlink |
I am getting this error whenever I try to install something from npm
Error
File versions
Things I tried:
System Details Report
Report details
Hardware Information:
Software Information:
The text was updated successfully, but these errors were encountered: