question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pnpm bootstrap is failing

See original GitHub issue

Looking for any insight on my error when attempting to

pnpm bootstrap

seems to be failing on liblzma-config.sh command

<omitted success>
.../node_modules/lzma-native install: gyp info spawn /usr/bin/python3
.../node_modules/lzma-native install: gyp info spawn args [
.../node_modules/lzma-native install: gyp info spawn args   '/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py',
.../node_modules/lzma-native install: gyp info spawn args   'binding.gyp',
.../node_modules/lzma-native install: gyp info spawn args   '-f',
.../node_modules/lzma-native install: gyp info spawn args   'make',
.../node_modules/lzma-native install: gyp info spawn args   '-I',
.../node_modules/lzma-native install: gyp info spawn args   '/tmp/kie-tools-main/node_modules/.pnpm/lzma-native@6.0.1/node_modules/lzma-native/build/config.gypi',
.../node_modules/lzma-native install: gyp info spawn args   '-I',
.../node_modules/lzma-native install: gyp info spawn args   '/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi',
.../node_modules/lzma-native install: gyp info spawn args   '-I',
.../node_modules/lzma-native install: gyp info spawn args   '/root/.cache/node-gyp/16.14.0/include/node/common.gypi',
.../node_modules/lzma-native install: gyp info spawn args   '-Dlibrary=shared_library',
.../node_modules/lzma-native install: gyp info spawn args   '-Dvisibility=default',
.../node_modules/lzma-native install: gyp info spawn args   '-Dnode_root_dir=/root/.cache/node-gyp/16.14.0',
.../node_modules/lzma-native install: gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp',
.../node_modules/lzma-native install: gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/16.14.0/<(target_arch)/node.lib',
.../node_modules/lzma-native install: gyp info spawn args   '-Dmodule_root_dir=/tmp/kie-tools-main/node_modules/.pnpm/lzma-native@6.0.1/node_modules/lzma-native',
.../node_modules/lzma-native install: gyp info spawn args   '-Dnode_engine=v8',
.../node_modules/lzma-native install: gyp info spawn args   '--depth=.',
.../node_modules/lzma-native install: gyp info spawn args   '--no-parallel',
.../node_modules/lzma-native install: gyp info spawn args   '--generator-output',
.../node_modules/lzma-native install: gyp info spawn args   'build',
.../node_modules/lzma-native install: gyp info spawn args   '-Goutput_dir=.'
.../node_modules/lzma-native install: gyp info spawn args ]
.../node_modules/lzma-native install: gyp: Call to 'sh liblzma-config.sh "/tmp/kie-tools-main/node_modules/.pnpm/lzma-native@6.0.1/node_modules/lzma-native/build" "/tmp/kie-tools-main/node_modules/.pnpm/lzma-native@6.0.1/node_modules/lzma-native/deps/xz-5.2.3.tar.bz2"' returned exit status 2 while in binding.gyp. while trying to load binding.gyp
.../node_modules/lzma-native install: gyp ERR! configure error 
.../node_modules/lzma-native install: gyp ERR! stack Error: `gyp` failed with exit code: 1
.../node_modules/lzma-native install: gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/lib/configure.js:259:16)
.../node_modules/lzma-native install: gyp ERR! stack     at ChildProcess.emit (node:events:520:28)
.../node_modules/lzma-native install: gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
.../node_modules/lzma-native install: gyp ERR! System Linux 5.10.76-linuxkit
.../node_modules/lzma-native install: gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/tmp/kie-tools-main/node_modules/.pnpm/lzma-native@6.0.1/node_modules/lzma-native/binding-v6.0.1-n-api-linux-arm64/lzma_native.node" "--module_name=lzma_native" "--module_path=/tmp/kie-tools-main/node_modules/.pnpm/lzma-native@6.0.1/node_modules/lzma-native/binding-v6.0.1-n-api-linux-arm64" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93" "--python=/usr/bin/python3"
.../node_modules/lzma-native install: gyp ERR! cwd /tmp/kie-tools-main/node_modules/.pnpm/lzma-native@6.0.1/node_modules/lzma-native
.../node_modules/lzma-native install: gyp ERR! node -v v16.14.0
.../node_modules/lzma-native install: gyp ERR! node-gyp -v v8.4.1
.../node_modules/lzma-native install: gyp ERR! not ok 
.../node_modules/lzma-native install: node-pre-gyp ERR! build error 
.../node_modules/lzma-native install: node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/tmp/kie-tools-main/node_modules/.pnpm/lzma-native@6.0.1/node_modules/lzma-native/binding-v6.0.1-n-api-linux-arm64/lzma_native.node --module_name=lzma_native --module_path=/tmp/kie-tools-main/node_modules/.pnpm/lzma-native@6.0.1/node_modules/lzma-native/binding-v6.0.1-n-api-linux-arm64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93 --python=/usr/bin/python3' (1)
.../node_modules/lzma-native install: node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/tmp/kie-tools-main/node_modules/.pnpm/node-pre-gyp@0.11.0/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
.../node_modules/lzma-native install: node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:520:28)
.../node_modules/lzma-native install: node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1092:16)
.../node_modules/lzma-native install: node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
.../node_modules/lzma-native install: node-pre-gyp ERR! System Linux 5.10.76-linuxkit
.../node_modules/lzma-native install: node-pre-gyp ERR! command "/usr/bin/node" "/tmp/kie-tools-main/node_modules/.pnpm/node-pre-gyp@0.11.0/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
.../node_modules/lzma-native install: node-pre-gyp ERR! cwd /tmp/kie-tools-main/node_modules/.pnpm/lzma-native@6.0.1/node_modules/lzma-native
.../node_modules/lzma-native install: node-pre-gyp ERR! node -v v16.14.0
.../node_modules/lzma-native install: node-pre-gyp ERR! node-pre-gyp -v v0.11.0
.../node_modules/lzma-native install: node-pre-gyp ERR! not ok 
.../node_modules/lzma-native install: Failed to execute '/usr/bin/node /usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/tmp/kie-tools-main/node_modules/.pnpm/lzma-native@6.0.1/node_modules/lzma-native/binding-v6.0.1-n-api-linux-arm64/lzma_native.node --module_name=lzma_native --module_path=/tmp/kie-tools-main/node_modules/.pnpm/lzma-native@6.0.1/node_modules/lzma-native/binding-v6.0.1-n-api-linux-arm64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93 --python=/usr/bin/python3' (1)
.../node_modules/lzma-native install: Failed
 ELIFECYCLE  Command failed with exit code 1.
 ELIFECYCLE  Command failed with exit code 1.
 ELIFECYCLE  Command failed with exit code 1.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
tiagobentocommented, Aug 4, 2022

Hi @SigmaOutdoors!

Doesn’t look like our build has ever run on an arm64 Linux before. I occasionally develop on my M1 MacBook Air, which would be arm64 macOS, but I’ve never had such failures. Glad to know you were able to setup an amd64 VM.

Regarding the Java issue, I have no idea what could be happening. We use OpenJDK 11 on our CI and I’ve never seen this error before. If you have access to another amd64 environment and could try and reproduce, maybe this would be a good start to finding the root cause.

0reactions
tiagobentocommented, Sep 22, 2022

@SigmaOutdoors Following the discussion on Zulip, closing this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lerna bootstrap fails due to concurrency (with npm) · Issue #789
I ran into a variation of this issue, a problem where an npm installs failed while running lerna bootstrap, which was resolved by...
Read more >
Troubleshooting | Lerna
If lerna bootstrap is failing because you have repositories on a private server make sure you are including that registry. Example: lerna bootstrap...
Read more >
pnpm/pnpm - Gitter
I'm looking at updating theYeoman generator for the SharePoint Framework SDK to allow them to choose between NPM, PNPM, and Yarn. We need...
Read more >
@lerna/bootstrap - npm
Start using @lerna/bootstrap in your project by running `npm i @lerna/bootstrap`. There are 6 other projects in the npm registry using ...
Read more >
Production | pnpm
Production. There are two ways to bootstrap your package in a production environment with pnpm. One of these is to commit the lockfile....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found