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

Error in NPM Install #2347

Closed
ZonaBRDev opened this issue Mar 20, 2021 · 3 comments
Closed

Error in NPM Install #2347

ZonaBRDev opened this issue Mar 20, 2021 · 3 comments
Labels

Comments

@ZonaBRDev
Copy link

  • Node Version:
  • Platform:
  • Compiler:
  • Module:
Verbose output (from npm or node-gyp):
Paste your log here, between the backticks. It can be:
  - npm --verbose output,
  - or contents of npm-debug.log,
  - or output of node-gyp rebuild --verbose.
Include the command you were trying to run.

This should look like this:

>npm --verbose
npm info it worked if it ends with ok
npm verb cli [
npm verb cli   'C:\\...\\node\\13.9.0\\x64\\node.exe',
npm verb cli   'C:\\...\\node\\13.9.0\\x64\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli   '--verbose'
npm verb cli ]
npm info using npm@6.13.7
npm info using node@v13.9.0

Usage: npm <command>
(...)

$ npm install discord.js

lzma-native@3.0.8 install /home/runner/Meu-maior-bot/node_modules/lzma-native
node-pre-gyp install --fallback-to-build && node node_modules/rimraf/bin.js build

node-pre-gyp ERR! Tried to download(404): https://node-pre-gyp.addaleax.net/lzma-native/lzma_native-v3.0.8-node-v72-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and node@12.21.0 (node-v72 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download(undefined): https://node-pre-gyp.addaleax.net/lzma-native/lzma_native-v3.0.8-node-v72-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and node@12.21.0 (node-v72 ABI, glibc) (falling back to source compile with node-gyp)
gyp: Call to 'sh liblzma-config.sh "/home/runner/Meu-maior-bot/node_modules/lzma-native/build" "/home/runner/Meu-maior-bot/node_modules/lzma-native/deps/xz-5.2.3.tar.bz2"' returned exit status 77 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Linux 5.4.0-1019-gcp
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/runner/Meu-maior-bot/node_modules/lzma-native/binding-v3.0.8-node-v72-linux-x64/lzma_native.node" "--module_name=lzma_native" "--module_path=/home/runner/Meu-maior-bot/node_modules/lzma-native/binding-v3.0.8-node-v72-linux-x64"
gyp ERR! cwd /home/runner/Meu-maior-bot/node_modules/lzma-native
gyp ERR! node -v v12.21.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/runner/Meu-maior-bot/node_modules/lzma-native/binding-v3.0.8-node-v72-linux-x64/lzma_native.node --module_name=lzma_native --module_path=/home/runner/Meu-maior-bot/node_modules/lzma-native/binding-v3.0.8-node-v72-linux-x64' (1)
node-pre-gyp ERR! stack at ChildProcess. (/home/runner/Meu-maior-bot/node_modules/lzma-native/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:314:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1022:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
node-pre-gyp ERR! System Linux 5.4.0-1019-gcp
node-pre-gyp ERR! command "/usr/local/bin/node" "/home/runner/Meu-maior-bot/node_modules/lzma-native/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/runner/Meu-maior-bot/node_modules/lzma-native
node-pre-gyp ERR! node -v v12.21.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/runner/Meu-maior-bot/node_modules/lzma-native/binding-v3.0.8-node-v72-linux-x64/lzma_native.node --module_name=lzma_native --module_path=/home/runner/Meu-maior-bot/node_modules/lzma-native/binding-v3.0.8-node-v72-linux-x64' (1)
gyp: Call to 'sh liblzma-config.sh "/home/runner/Meu-maior-bot/node_modules/lzma-native/build" "/home/runner/Meu-maior-bot/node_modules/lzma-native/deps/xz-5.2.3.tar.bz2"' returned exit status 77 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Linux 5.4.0-1019-gcp
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/runner/Meu-maior-bot/node_modules/lzma-native/binding-v3.0.8-node-v72-linux-x64/lzma_native.node" "--module_name=lzma_native" "--module_path=/home/runner/Meu-maior-bot/node_modules/lzma-native/binding-v3.0.8-node-v72-linux-x64"
gyp ERR! cwd /home/runner/Meu-maior-bot/node_modules/lzma-native
gyp ERR! node -v v12.21.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN Meu-maior-bot@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! lzma-native@3.0.8 install: node-pre-gyp install --fallback-to-build && node node_modules/rimraf/bin.js build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the lzma-native@3.0.8 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2021-03-20T05_50_02_433Z-debug.log

@cclauss cclauss added the ERR! node-gyp -v < v10.x.x npm install -g npm label Mar 20, 2021
@cclauss
Copy link
Contributor

cclauss commented Mar 20, 2021

gyp ERR! node-gyp -v v5.1.0

vs. https://github.com/nodejs/node-gyp/releases

lzma-native@3.0.8

vs. https://www.npmjs.com/package/lzma-native

@cclauss
Copy link
Contributor

cclauss commented Jun 2, 2021

Please follow the Linux instructions at https://github.com/nodejs/node-gyp/wiki/Updating-npm's-bundled-node-gyp

@cclauss
Copy link
Contributor

cclauss commented Apr 11, 2024

Closing because node-pre-gyp is unmaintained.

@cclauss cclauss closed this as completed Apr 11, 2024
@cclauss cclauss added the node-pre-gyp is unmaintained mapbox/node-pre-gyp#657 label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants