Error when installing ffmpeg-binaries using npm












0















I needed ffmpeg-binaries for playing a audio file thru a voice channel with my discord bot but npm just returns an error.



Error message:



C:Usersmalte>npm install ffmpeg-binaries --save
> lzma-native@3.0.8 install C:Usersmaltenode_moduleslzma-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-v67-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and node@11.1.0 (node-v67 ABI, unknown) (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-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and node@11.1.0 (node-v67 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:UsersmalteAppDataLocalProgramsPythonPython36-32python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at maybeClose (internal/child_process.js:970:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:257:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\malte\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64\lzma_native.node" "--module_name=lzma_native" "--module_path=C:\Users\malte\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64"
gyp ERR! cwd C:Usersmaltenode_moduleslzma-native
gyp ERR! node -v v11.1.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:UsersmalteAppDataLocalProgramsPythonPython36-32python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gypnode-pre-gyp ERR!ERR! build errorstack

node-pre-gypgyp ERR!ERR! stackstack at ChildProcess.exithandler (child_process.js:289:12)
Error: Failed to execute 'C:Program Filesnodejsnode.exe C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure --fallback-to-build --module=C:Usersmaltenode_moduleslzma-nativebinding-v3.0.8-node-v67-win32-x64lzma_native.node --module_name=lzma_native --module_path=C:Usersmaltenode_moduleslzma-nativebinding-v3.0.8-node-v67-win32-x64' (1)
gypnode-pre-gyp ERR! ERR!stack at ChildProcess.<anonymous> (C:Usersmaltenode_moduleslzma-nativenode_modulesnode-pre-gyplibutilcompile.js:83:29)
stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp gypERR! ERR!stack at ChildProcess.emit (events.js:182:13)
stacknode-pre-gyp at maybeClose (internal/child_process.js:970:16)
gyp ERR!ERR! stackstack at maybeClose (internal/child_process.js:970:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:257:5)
node-pre-gyp ERR!gyp stackERR! at Process.ChildProcess._handle.onexit (internal/child_process.js:257:5)
node-pre-gyp ERR! SystemSystem Windows_NT 10.0.17134
Windows_NT 10.0.17134
gyp ERR! node-pre-gypcommand "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\malte\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64\lzma_native.node" "--module_name=lzma_native" "--module_path=C:\Users\malte\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64"
ERR! gypcommand "C:\Program Files\nodejs\node.exe" "C:\Users\malte\node_modules\lzma-native\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
ERR!node-pre-gyp cwdERR! C:Usersmaltenode_moduleslzma-native
gypcwd C:Usersmaltenode_moduleslzma-native
ERR!node-pre-gyp node -vERR! v11.1.0
node -vgyp v11.1.0
ERR!node-pre-gyp node-gyp -vERR! v3.8.0
node-pre-gyp -vgyp v0.6.39
node-pre-gyp ERR!ERR! not oknot ok

Failed to execute 'C:Program Filesnodejsnode.exe C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure --fallback-to-build --module=C:Usersmaltenode_moduleslzma-nativebinding-v3.0.8-node-v67-win32-x64lzma_native.node --module_name=lzma_native --module_path=C:Usersmaltenode_moduleslzma-nativebinding-v3.0.8-node-v67-win32-x64' (1)
npm WARN enoent ENOENT: no such file or directory, open 'C:Usersmaltepackage.json'
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 sodium@^2.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN malte No description
npm WARN malte No repository field.
npm WARN malte No README data
npm WARN malte No license 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! C:UsersmalteAppDataRoamingnpm-cache_logs2019-01-05T18_39_28_480Z-debug.log


I am using windows 10 with 64bit architecture. I havent seen that anyone else on the internet has encountered this error. If you go to https://node-pre-gyp.addaleax.net/lzma-native/lzma_native-v3.0.8-node-v67-win32-x64.tar.gz (as shown in the error) it says 404. I think this is what is causing the error to happen but i dont know how to fix it. The discord.js and the no description, repository field, readme data, license warns are probably irrelevant since they happen everytime i install an api using npm. As far as i know i cant fix them and it dosnt effect anything. the complete log that is mentioned in the error is this:



https://pastebin.com/0NMiGG4q



(it was to large to fit here)










share|improve this question























  • What is your Python version? Run python --version and edit your question.

    – juniorRubyist
    Jan 5 at 20:41











  • Obviously it (whatever it is, exactly), is trying to use Python 2 syntax, but you have Python 3 on your system. This leads to a syntax error.

    – slhck
    Jan 5 at 21:58











  • yea i have python 3.6.5, but isnt npm is for installing apis for node.js?

    – Malte
    Jan 5 at 23:34











  • didnt work, got the same error

    – Malte
    Jan 6 at 1:04
















0















I needed ffmpeg-binaries for playing a audio file thru a voice channel with my discord bot but npm just returns an error.



Error message:



C:Usersmalte>npm install ffmpeg-binaries --save
> lzma-native@3.0.8 install C:Usersmaltenode_moduleslzma-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-v67-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and node@11.1.0 (node-v67 ABI, unknown) (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-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and node@11.1.0 (node-v67 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:UsersmalteAppDataLocalProgramsPythonPython36-32python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at maybeClose (internal/child_process.js:970:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:257:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\malte\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64\lzma_native.node" "--module_name=lzma_native" "--module_path=C:\Users\malte\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64"
gyp ERR! cwd C:Usersmaltenode_moduleslzma-native
gyp ERR! node -v v11.1.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:UsersmalteAppDataLocalProgramsPythonPython36-32python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gypnode-pre-gyp ERR!ERR! build errorstack

node-pre-gypgyp ERR!ERR! stackstack at ChildProcess.exithandler (child_process.js:289:12)
Error: Failed to execute 'C:Program Filesnodejsnode.exe C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure --fallback-to-build --module=C:Usersmaltenode_moduleslzma-nativebinding-v3.0.8-node-v67-win32-x64lzma_native.node --module_name=lzma_native --module_path=C:Usersmaltenode_moduleslzma-nativebinding-v3.0.8-node-v67-win32-x64' (1)
gypnode-pre-gyp ERR! ERR!stack at ChildProcess.<anonymous> (C:Usersmaltenode_moduleslzma-nativenode_modulesnode-pre-gyplibutilcompile.js:83:29)
stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp gypERR! ERR!stack at ChildProcess.emit (events.js:182:13)
stacknode-pre-gyp at maybeClose (internal/child_process.js:970:16)
gyp ERR!ERR! stackstack at maybeClose (internal/child_process.js:970:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:257:5)
node-pre-gyp ERR!gyp stackERR! at Process.ChildProcess._handle.onexit (internal/child_process.js:257:5)
node-pre-gyp ERR! SystemSystem Windows_NT 10.0.17134
Windows_NT 10.0.17134
gyp ERR! node-pre-gypcommand "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\malte\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64\lzma_native.node" "--module_name=lzma_native" "--module_path=C:\Users\malte\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64"
ERR! gypcommand "C:\Program Files\nodejs\node.exe" "C:\Users\malte\node_modules\lzma-native\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
ERR!node-pre-gyp cwdERR! C:Usersmaltenode_moduleslzma-native
gypcwd C:Usersmaltenode_moduleslzma-native
ERR!node-pre-gyp node -vERR! v11.1.0
node -vgyp v11.1.0
ERR!node-pre-gyp node-gyp -vERR! v3.8.0
node-pre-gyp -vgyp v0.6.39
node-pre-gyp ERR!ERR! not oknot ok

Failed to execute 'C:Program Filesnodejsnode.exe C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure --fallback-to-build --module=C:Usersmaltenode_moduleslzma-nativebinding-v3.0.8-node-v67-win32-x64lzma_native.node --module_name=lzma_native --module_path=C:Usersmaltenode_moduleslzma-nativebinding-v3.0.8-node-v67-win32-x64' (1)
npm WARN enoent ENOENT: no such file or directory, open 'C:Usersmaltepackage.json'
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 sodium@^2.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN malte No description
npm WARN malte No repository field.
npm WARN malte No README data
npm WARN malte No license 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! C:UsersmalteAppDataRoamingnpm-cache_logs2019-01-05T18_39_28_480Z-debug.log


I am using windows 10 with 64bit architecture. I havent seen that anyone else on the internet has encountered this error. If you go to https://node-pre-gyp.addaleax.net/lzma-native/lzma_native-v3.0.8-node-v67-win32-x64.tar.gz (as shown in the error) it says 404. I think this is what is causing the error to happen but i dont know how to fix it. The discord.js and the no description, repository field, readme data, license warns are probably irrelevant since they happen everytime i install an api using npm. As far as i know i cant fix them and it dosnt effect anything. the complete log that is mentioned in the error is this:



https://pastebin.com/0NMiGG4q



(it was to large to fit here)










share|improve this question























  • What is your Python version? Run python --version and edit your question.

    – juniorRubyist
    Jan 5 at 20:41











  • Obviously it (whatever it is, exactly), is trying to use Python 2 syntax, but you have Python 3 on your system. This leads to a syntax error.

    – slhck
    Jan 5 at 21:58











  • yea i have python 3.6.5, but isnt npm is for installing apis for node.js?

    – Malte
    Jan 5 at 23:34











  • didnt work, got the same error

    – Malte
    Jan 6 at 1:04














0












0








0








I needed ffmpeg-binaries for playing a audio file thru a voice channel with my discord bot but npm just returns an error.



Error message:



C:Usersmalte>npm install ffmpeg-binaries --save
> lzma-native@3.0.8 install C:Usersmaltenode_moduleslzma-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-v67-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and node@11.1.0 (node-v67 ABI, unknown) (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-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and node@11.1.0 (node-v67 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:UsersmalteAppDataLocalProgramsPythonPython36-32python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at maybeClose (internal/child_process.js:970:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:257:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\malte\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64\lzma_native.node" "--module_name=lzma_native" "--module_path=C:\Users\malte\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64"
gyp ERR! cwd C:Usersmaltenode_moduleslzma-native
gyp ERR! node -v v11.1.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:UsersmalteAppDataLocalProgramsPythonPython36-32python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gypnode-pre-gyp ERR!ERR! build errorstack

node-pre-gypgyp ERR!ERR! stackstack at ChildProcess.exithandler (child_process.js:289:12)
Error: Failed to execute 'C:Program Filesnodejsnode.exe C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure --fallback-to-build --module=C:Usersmaltenode_moduleslzma-nativebinding-v3.0.8-node-v67-win32-x64lzma_native.node --module_name=lzma_native --module_path=C:Usersmaltenode_moduleslzma-nativebinding-v3.0.8-node-v67-win32-x64' (1)
gypnode-pre-gyp ERR! ERR!stack at ChildProcess.<anonymous> (C:Usersmaltenode_moduleslzma-nativenode_modulesnode-pre-gyplibutilcompile.js:83:29)
stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp gypERR! ERR!stack at ChildProcess.emit (events.js:182:13)
stacknode-pre-gyp at maybeClose (internal/child_process.js:970:16)
gyp ERR!ERR! stackstack at maybeClose (internal/child_process.js:970:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:257:5)
node-pre-gyp ERR!gyp stackERR! at Process.ChildProcess._handle.onexit (internal/child_process.js:257:5)
node-pre-gyp ERR! SystemSystem Windows_NT 10.0.17134
Windows_NT 10.0.17134
gyp ERR! node-pre-gypcommand "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\malte\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64\lzma_native.node" "--module_name=lzma_native" "--module_path=C:\Users\malte\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64"
ERR! gypcommand "C:\Program Files\nodejs\node.exe" "C:\Users\malte\node_modules\lzma-native\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
ERR!node-pre-gyp cwdERR! C:Usersmaltenode_moduleslzma-native
gypcwd C:Usersmaltenode_moduleslzma-native
ERR!node-pre-gyp node -vERR! v11.1.0
node -vgyp v11.1.0
ERR!node-pre-gyp node-gyp -vERR! v3.8.0
node-pre-gyp -vgyp v0.6.39
node-pre-gyp ERR!ERR! not oknot ok

Failed to execute 'C:Program Filesnodejsnode.exe C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure --fallback-to-build --module=C:Usersmaltenode_moduleslzma-nativebinding-v3.0.8-node-v67-win32-x64lzma_native.node --module_name=lzma_native --module_path=C:Usersmaltenode_moduleslzma-nativebinding-v3.0.8-node-v67-win32-x64' (1)
npm WARN enoent ENOENT: no such file or directory, open 'C:Usersmaltepackage.json'
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 sodium@^2.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN malte No description
npm WARN malte No repository field.
npm WARN malte No README data
npm WARN malte No license 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! C:UsersmalteAppDataRoamingnpm-cache_logs2019-01-05T18_39_28_480Z-debug.log


I am using windows 10 with 64bit architecture. I havent seen that anyone else on the internet has encountered this error. If you go to https://node-pre-gyp.addaleax.net/lzma-native/lzma_native-v3.0.8-node-v67-win32-x64.tar.gz (as shown in the error) it says 404. I think this is what is causing the error to happen but i dont know how to fix it. The discord.js and the no description, repository field, readme data, license warns are probably irrelevant since they happen everytime i install an api using npm. As far as i know i cant fix them and it dosnt effect anything. the complete log that is mentioned in the error is this:



https://pastebin.com/0NMiGG4q



(it was to large to fit here)










share|improve this question














I needed ffmpeg-binaries for playing a audio file thru a voice channel with my discord bot but npm just returns an error.



Error message:



C:Usersmalte>npm install ffmpeg-binaries --save
> lzma-native@3.0.8 install C:Usersmaltenode_moduleslzma-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-v67-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and node@11.1.0 (node-v67 ABI, unknown) (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-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and node@11.1.0 (node-v67 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:UsersmalteAppDataLocalProgramsPythonPython36-32python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at maybeClose (internal/child_process.js:970:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:257:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\malte\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64\lzma_native.node" "--module_name=lzma_native" "--module_path=C:\Users\malte\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64"
gyp ERR! cwd C:Usersmaltenode_moduleslzma-native
gyp ERR! node -v v11.1.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:UsersmalteAppDataLocalProgramsPythonPython36-32python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gypnode-pre-gyp ERR!ERR! build errorstack

node-pre-gypgyp ERR!ERR! stackstack at ChildProcess.exithandler (child_process.js:289:12)
Error: Failed to execute 'C:Program Filesnodejsnode.exe C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure --fallback-to-build --module=C:Usersmaltenode_moduleslzma-nativebinding-v3.0.8-node-v67-win32-x64lzma_native.node --module_name=lzma_native --module_path=C:Usersmaltenode_moduleslzma-nativebinding-v3.0.8-node-v67-win32-x64' (1)
gypnode-pre-gyp ERR! ERR!stack at ChildProcess.<anonymous> (C:Usersmaltenode_moduleslzma-nativenode_modulesnode-pre-gyplibutilcompile.js:83:29)
stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp gypERR! ERR!stack at ChildProcess.emit (events.js:182:13)
stacknode-pre-gyp at maybeClose (internal/child_process.js:970:16)
gyp ERR!ERR! stackstack at maybeClose (internal/child_process.js:970:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:257:5)
node-pre-gyp ERR!gyp stackERR! at Process.ChildProcess._handle.onexit (internal/child_process.js:257:5)
node-pre-gyp ERR! SystemSystem Windows_NT 10.0.17134
Windows_NT 10.0.17134
gyp ERR! node-pre-gypcommand "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\malte\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64\lzma_native.node" "--module_name=lzma_native" "--module_path=C:\Users\malte\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64"
ERR! gypcommand "C:\Program Files\nodejs\node.exe" "C:\Users\malte\node_modules\lzma-native\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
ERR!node-pre-gyp cwdERR! C:Usersmaltenode_moduleslzma-native
gypcwd C:Usersmaltenode_moduleslzma-native
ERR!node-pre-gyp node -vERR! v11.1.0
node -vgyp v11.1.0
ERR!node-pre-gyp node-gyp -vERR! v3.8.0
node-pre-gyp -vgyp v0.6.39
node-pre-gyp ERR!ERR! not oknot ok

Failed to execute 'C:Program Filesnodejsnode.exe C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure --fallback-to-build --module=C:Usersmaltenode_moduleslzma-nativebinding-v3.0.8-node-v67-win32-x64lzma_native.node --module_name=lzma_native --module_path=C:Usersmaltenode_moduleslzma-nativebinding-v3.0.8-node-v67-win32-x64' (1)
npm WARN enoent ENOENT: no such file or directory, open 'C:Usersmaltepackage.json'
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 sodium@^2.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN malte No description
npm WARN malte No repository field.
npm WARN malte No README data
npm WARN malte No license 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! C:UsersmalteAppDataRoamingnpm-cache_logs2019-01-05T18_39_28_480Z-debug.log


I am using windows 10 with 64bit architecture. I havent seen that anyone else on the internet has encountered this error. If you go to https://node-pre-gyp.addaleax.net/lzma-native/lzma_native-v3.0.8-node-v67-win32-x64.tar.gz (as shown in the error) it says 404. I think this is what is causing the error to happen but i dont know how to fix it. The discord.js and the no description, repository field, readme data, license warns are probably irrelevant since they happen everytime i install an api using npm. As far as i know i cant fix them and it dosnt effect anything. the complete log that is mentioned in the error is this:



https://pastebin.com/0NMiGG4q



(it was to large to fit here)







ffmpeg node.js






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 5 at 18:51









MalteMalte

1




1













  • What is your Python version? Run python --version and edit your question.

    – juniorRubyist
    Jan 5 at 20:41











  • Obviously it (whatever it is, exactly), is trying to use Python 2 syntax, but you have Python 3 on your system. This leads to a syntax error.

    – slhck
    Jan 5 at 21:58











  • yea i have python 3.6.5, but isnt npm is for installing apis for node.js?

    – Malte
    Jan 5 at 23:34











  • didnt work, got the same error

    – Malte
    Jan 6 at 1:04



















  • What is your Python version? Run python --version and edit your question.

    – juniorRubyist
    Jan 5 at 20:41











  • Obviously it (whatever it is, exactly), is trying to use Python 2 syntax, but you have Python 3 on your system. This leads to a syntax error.

    – slhck
    Jan 5 at 21:58











  • yea i have python 3.6.5, but isnt npm is for installing apis for node.js?

    – Malte
    Jan 5 at 23:34











  • didnt work, got the same error

    – Malte
    Jan 6 at 1:04

















What is your Python version? Run python --version and edit your question.

– juniorRubyist
Jan 5 at 20:41





What is your Python version? Run python --version and edit your question.

– juniorRubyist
Jan 5 at 20:41













Obviously it (whatever it is, exactly), is trying to use Python 2 syntax, but you have Python 3 on your system. This leads to a syntax error.

– slhck
Jan 5 at 21:58





Obviously it (whatever it is, exactly), is trying to use Python 2 syntax, but you have Python 3 on your system. This leads to a syntax error.

– slhck
Jan 5 at 21:58













yea i have python 3.6.5, but isnt npm is for installing apis for node.js?

– Malte
Jan 5 at 23:34





yea i have python 3.6.5, but isnt npm is for installing apis for node.js?

– Malte
Jan 5 at 23:34













didnt work, got the same error

– Malte
Jan 6 at 1:04





didnt work, got the same error

– Malte
Jan 6 at 1:04










1 Answer
1






active

oldest

votes


















-1














Just install another api called ffbinaries, that one actually works






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1390962%2ferror-when-installing-ffmpeg-binaries-using-npm%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    -1














    Just install another api called ffbinaries, that one actually works






    share|improve this answer




























      -1














      Just install another api called ffbinaries, that one actually works






      share|improve this answer


























        -1












        -1








        -1







        Just install another api called ffbinaries, that one actually works






        share|improve this answer













        Just install another api called ffbinaries, that one actually works







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 10 at 17:34









        MalteMalte

        1




        1






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1390962%2ferror-when-installing-ffmpeg-binaries-using-npm%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Plaza Victoria

            Puebla de Zaragoza

            Musa