Rantanen / node-opus

Opus bindings for Node.js
MIT License
79 stars 32 forks source link

Ubuntu 18.4 node v11.10.0 #71

Closed wandersouzadev closed 5 years ago

wandersouzadev commented 5 years ago

node-pre-gyp install --fallback-to-build && node node_modules/rimraf/bin.js build

node-pre-gyp ERR! Tried to download(undefined): https://node-pre-gyp.addaleax.net/lzma-native/lzma_native-v3.0.8-node-v67-linux-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and node@11.10.0 (node-v67 ABI, glibc) (falling back to source compile with node-gyp) node-pre-gyp ERR! Tried to download(404): https://node-pre-gyp.addaleax.net/lzma-native/lzma_native-v3.0.8-node-v67-linux-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and node@11.10.0 (node-v67 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-v67-linux-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and node@11.10.0 (node-v67 ABI, glibc) (falling back to source compile with node-gyp) gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/wandersouza/heregeMusic/node_modules/lzma-native/build' gyp ERR! System Linux 4.15.0-33-generic gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/wandersouza/heregeMusic/node_modules/lzma-native/binding-v3.0.8-node-v67-linux-x64/lzma_native.node" "--module_name=lzma_native" "--module_path=/home/wandersouza/heregeMusic/node_modules/lzma-native/binding-v3.0.8-node-v67-linux-x64" gyp ERR! cwd /home/wandersouza/heregeMusic/node_modules/lzma-native gyp ERR! node -v v11.10.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/wandersouza/heregeMusic/node_modules/lzma-native/binding-v3.0.8-node-v67-linux-x64/lzma_native.node --module_name=lzma_native --module_path=/home/wandersouza/heregeMusic/node_modules/lzma-native/binding-v3.0.8-node-v67-linux-x64' (1) node-pre-gyp ERR! stack at ChildProcess. (/home/wandersouza/heregeMusic/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:197:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:984:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5) node-pre-gyp ERR! System Linux 4.15.0-33-generic node-pre-gyp ERR! command "/usr/bin/node" "/home/wandersouza/heregeMusic/node_modules/lzma-native/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /home/wandersouza/heregeMusic/node_modules/lzma-native node-pre-gyp ERR! node -v v11.10.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.39 node-pre-gyp ERR! not ok Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/wandersouza/heregeMusic/node_modules/lzma-native/binding-v3.0.8-node-v67-linux-x64/lzma_native.node --module_name=lzma_native --module_path=/home/wandersouza/heregeMusic/node_modules/lzma-native/binding-v3.0.8-node-v67-linux-x64' (1) gyp ERR! configure error stall: info lifecycle lzma-native@3.0.8~install: Failed to exec install script gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/wandersouza/heregeMusic/node_modules/lzma-native/build' gyp ERR! System Linux 4.15.0-33-generic gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/wandersouza/heregeMusic/node_modules/lzma-native/binding-v3.0.8-node-v67-linux-x64/lzma_native.node" "--module_name=lzma_native" "--module_path=/home/wandersouza/heregeMusic/node_modules/lzma-native/binding-v3.0.8-node-v67-linux-x64" gyp ERR!gyp cwd /home/wandersouza/heregeMusic/node_modules/lzma-native gyp ERR! node -v v11.10.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/wandersouza/heregeMusic/node_modules/lzma-native/build' gyp ERR! System Linux 4.15.0-33-generic gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/wandersouza/heregeMusic/node_modules/lzma-native/binding-v3.0.8-node-v67-linux-x64/lzma_native.node" "--module_name=lzma_native" "--module_path=/home/wandersouza/heregeMusic/node_modules/lzma-native/binding-v3.0.8-node-v67-linux-x64" gyp ERR! cwd /home/wandersouza/heregeMusic/node_modules/lzma-native gyp ERR! node -v v11.10.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN discord.js@11.4.2 requires a peer of bufferutil@^3.0.3 but none is installed. You must install peer dependencies yourself. npm WARN discord.js@11.4.2 requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself. npm WARN discord.js@11.4.2 requires a peer of node-opus@^0.2.7 but none is installed. You must install peer dependencies yourself. npm WARN discord.js@11.4.2 requires a peer of opusscript@^0.0.6 but none is installed. You must install peer dependencies yourself. npm WARN discord.js@11.4.2 requires a peer of sodium@^2.0.3 but none is installed. You must install peer dependencies yourself. npm WARN discord.js@11.4.2 requires a peer of libsodium-wrappers@^0.7.3 but none is installed. You must install peer dependencies yourself. npm WARN discord.js@11.4.2 requires a peer of uws@^9.14.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

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/wandersouza/.npm/_logs/2019-02-23T23_43_24_827Z-debug.log

MichaelXF commented 5 years ago

Also using discord.js, have the same problem on ubuntu for raspberry pi, I get a different error message regarding "Error: not found: make" tho, it seems your error has to do with file perms

Rantanen commented 5 years ago

This seems like a problem with node-gyp or npm. You'll need to set up your Node build environment. Sorry I can't help much with that.

@MichaelXF Usually installing build-essential is a good start for getting most of the toolchain set up.