Skip to content
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

Can't install #2

Closed
privacyfreak84 opened this issue May 20, 2024 · 7 comments
Closed

Can't install #2

privacyfreak84 opened this issue May 20, 2024 · 7 comments

Comments

@privacyfreak84
Copy link

privacyfreak84 commented May 20, 2024

When trying to install node-gyp, I get the following error:

Cannot`` load externalized builtin: "internal/deps/cjs-module-lexer/lexer:/usr/lib/node_modules/cjs-module-lexer/lexer.js".

----- Native stack trace -----

1: 0x7fa79edf8fa4 node::builtins::BuiltinLoader::AddExternalizedBuiltin(char const*, char const*) [/lib64/libnode.so.115]
2: 0x7fa79edf9193 node::builtins::BuiltinLoader::BuiltinLoader() [/lib64/libnode.so.115]
3: 0x7fa79ed4e737 node::InitializePrimordials(v8::Localv8::Context) [/lib64/libnode.so.115]
4: 0x7fa79ed4e868 node::GetPerContextExports(v8::Localv8::Context) [/lib64/libnode.so.115]
5: 0x7fa79ed4e648 node::InitializePrimordials(v8::Localv8::Context) [/lib64/libnode.so.115]
6: 0x7fa79ed4e940 node::InitializeMainContextForSnapshot(v8::Localv8::Context) [/lib64/libnode.so.115]
7: 0x7fa79ed4e965 node::InitializeContext(v8::Localv8::Context) [/lib64/libnode.so.115]
8: 0x7fa79ed4e9c3 node::NewContext(v8::Isolate*, v8::Localv8::ObjectTemplate) [/lib64/libnode.so.115]
9: 0x7fa79ee7d024 node::NodeMainInstance::CreateMainEnvironment(node::ExitCode*) [/lib64/libnode.so.115]
10: 0x7fa79ee7d17b node::NodeMainInstance::Run() [/lib64/libnode.so.115]
11: 0x7fa79ede2999 node::Start(int, char**) [/lib64/libnode.so.115]
12: 0x7fa79e23d088 [/lib64/libc.so.6]
13: 0x7fa79e23d14b __libc_start_main [/lib64/libc.so.6]
14: 0x5590e4c92035 _start [node]
Aborted (core dumped)

OS: Fedora 40

@remvze
Copy link
Owner

remvze commented May 20, 2024

Hey there, do you have node-gyp dependencies installed?

@privacyfreak84
Copy link
Author

You mean Python, make and GCC? I have those.

Python version: 3.12.3

@remvze
Copy link
Owner

remvze commented May 20, 2024

  1. Do you install node-gyp directly or just install Lowfi? If the former, you don't need to install node-gyp separately; just install Lowfi, and it will also install and use node-gyp. The reason I've put node-gyp in the prerequisites is to let users know of the dependencies node-gyp needs. If you think that's confusing, let me know, and I'll modify the README.

  2. Can you install other packages globally, or is it just node-gyp/Lowfi?

@privacyfreak84
Copy link
Author

Well, when running npm install -g lowfi directly, i get the following:

Cannot load externalized builtin: "internal/deps/cjs-module-lexer/lexer:/usr/lib/node_modules/cjs-module-lexer/lexer.js".
----- Native stack trace -----

1: 0x7fe11c7f8fa4 node::builtins::BuiltinLoader::AddExternalizedBuiltin(char const*, char const*) [/lib64/libnode.so.115]
2: 0x7fe11c7f9193 node::builtins::BuiltinLoader::BuiltinLoader() [/lib64/libnode.so.115]
3: 0x7fe11c74e737 node::InitializePrimordials(v8::Localv8::Context) [/lib64/libnode.so.115]
4: 0x7fe11c74e868 node::GetPerContextExports(v8::Localv8::Context) [/lib64/libnode.so.115]
5: 0x7fe11c74e648 node::InitializePrimordials(v8::Localv8::Context) [/lib64/libnode.so.115]
6: 0x7fe11c74e940 node::InitializeMainContextForSnapshot(v8::Localv8::Context) [/lib64/libnode.so.115]
7: 0x7fe11c74e965 node::InitializeContext(v8::Localv8::Context) [/lib64/libnode.so.115]
8: 0x7fe11c74e9c3 node::NewContext(v8::Isolate*, v8::Localv8::ObjectTemplate) [/lib64/libnode.so.115]
9: 0x7fe11c87d024 node::NodeMainInstance::CreateMainEnvironment(node::ExitCode*) [/lib64/libnode.so.115]
10: 0x7fe11c87d17b node::NodeMainInstance::Run() [/lib64/libnode.so.115]
11: 0x7fe11c7e2999 node::Start(int, char**) [/lib64/libnode.so.115]
12: 0x7fe11bc3d088 [/lib64/libc.so.6]
13: 0x7fe11bc3d14b __libc_start_main [/lib64/libc.so.6]
14: 0x5650de6ba035 _start [node]
Aborted (core dumped)

@remvze
Copy link
Owner

remvze commented May 20, 2024

Could you please confirm that this issue occurs only with Lowfi and not with any global package installation in general? Perhaps try running npm install -g fast-cli and let me know if it installs correctly.

@privacyfreak84
Copy link
Author

npm install -g fast-cli

Returns the same error 😕

@remvze
Copy link
Owner

remvze commented May 20, 2024

Please check nodejs/cjs-module-lexer#92. I'm going to close this issue as it's not specific to Lowfi, but please open a new issue if you need help with anything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants