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

cannot install under linux #69

Open
spotlesscoder opened this issue Dec 15, 2024 · 1 comment
Open

cannot install under linux #69

spotlesscoder opened this issue Dec 15, 2024 · 1 comment

Comments

@spotlesscoder
Copy link

Hi,

thanks for making this :)

Unfortunately I cannot install the dependency on my linux system

I get this error message:

vscode ➜ /workspace (main) $ npm install
npm error code 1
npm error path /workspace/node_modules/wasm-sjlj
npm error command failed
npm error command sh -c node-gyp rebuild
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | linux | x64
npm error gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/usr/local/share/nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/workspace/node_modules/wasm-sjlj/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/usr/local/share/nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/home/vscode/.cache/node-gyp/22.12.0/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/home/vscode/.cache/node-gyp/22.12.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/usr/local/share/nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/home/vscode/.cache/node-gyp/22.12.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/workspace/node_modules/wasm-sjlj',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp: binding.gyp not found (cwd: /workspace/node_modules/wasm-sjlj) while trying to load binding.gyp
npm error gyp ERR! configure error 
npm error gyp ERR! stack Error: `gyp` failed with exit code: 1
npm error gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/share/nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:317:18)
npm error gyp ERR! stack at ChildProcess.emit (node:events:524:28)
npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm error gyp ERR! System Linux 6.8.0-49-generic
npm error gyp ERR! command "/usr/local/share/nvm/versions/node/v22.12.0/bin/node" "/usr/local/share/nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /workspace/node_modules/wasm-sjlj
npm error gyp ERR! node -v v22.12.0
npm error gyp ERR! node-gyp -v v10.2.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /home/vscode/.npm/_logs/2024-12-15T09_36_54_123Z-debug-0.log

I created a reproduction repo:

https://github.com/spotlesscoder/devcontainer-nx-rust-bug-repro

Does someone have an idea how I can it get up and running?

@Kr0san89
Copy link

as workaround use a different package manager or a a version < 2.0.0
see #64

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