gpt4 book ai didi

node.js - npm ffmpeg-binaries 安装失败

转载 作者:太空宇宙 更新时间:2023-11-04 01:42:20 26 4
gpt4 key购买 nike

问题

Failed at the ffmpeg-binaries@4.0.0 install script 'node install'

我是如何做到的

npm i ffmpeg-binaries

环境

VDS 上的 Ubuntu 14

Node v6.0.0

NVM v3.8.6

npm-debug 的最后一个字符串

    9491 silly rollbackFailedOptional Starting
9492 silly rollbackFailedOptional Finishing
9493 silly runTopLevelLifecycles Starting
9494 silly runTopLevelLifecycles Finishing
9495 silly install printInstalled
9496 warn root@1.0.0 No description
9497 warn root@1.0.0 No repository field.
9498 verbose stack Error: ffmpeg-binaries@4.0.0 install: `node install`
9498 verbose stack Exit status 137
9498 verbose stack at EventEmitter.<anonymous> (/root/.nvm/versions/node/v6.0.0/lib/node_modules/npm/lib/utils/lifecycle.js:239:16)
9498 verbose stack at emitTwo (events.js:106:13)
9498 verbose stack at EventEmitter.emit (events.js:191:7)
9498 verbose stack at ChildProcess.<anonymous> (/root/.nvm/versions/node/v6.0.0/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9498 verbose stack at emitTwo (events.js:106:13)
9498 verbose stack at ChildProcess.emit (events.js:191:7)
9498 verbose stack at maybeClose (internal/child_process.js:850:16)
9498 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
9499 verbose pkgid ffmpeg-binaries@4.0.0
9500 verbose cwd /root
9501 error Linux 2.6.32-042stab127.2
9502 error argv "/root/.nvm/versions/node/v6.0.0/bin/node" "/root/.nvm/versions/node/v6.0.0/bin/npm" "i" "ffmpeg-binaries"
9503 error node v6.0.0
9504 error npm v3.8.6
9505 error code ELIFECYCLE
9506 error ffmpeg-binaries@4.0.0 install: `node install`
9506 error Exit status 137
9507 error Failed at the ffmpeg-binaries@4.0.0 install script 'node install'.
9507 error Make sure you have the latest version of node.js and npm installed.
9507 error If you do, this is most likely a problem with the ffmpeg-binaries package,
9507 error not with npm itself.
9507 error Tell the author that this fails on your system:
9507 error node install
9507 error You can get information on how to open an issue for this project with:
9507 error npm bugs ffmpeg-binaries
9507 error Or if that isn't available, you can get their info via:
9507 error npm owner ls ffmpeg-binaries
9507 error There is likely additional logging output above.
9508 verbose exit [ 1, true ]

最佳答案

我最近也遇到了这个错误,但我已经解决了。您需要做的就是使用命令:

npm install ffbinaries

而不是使用ffmpeg-binaries。这样做的原因是因为二进制文件最初是为 ubuntu linux 创建的。希望这可以帮助! :)

关于node.js - npm ffmpeg-binaries 安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52490796/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com