NodeJS 在CentOS 7.9版上安装discord js时出错

kr98yfug  于 2023-03-07  发布在  Node.js
关注(0)|答案(1)|浏览(141)

我试着把我的机器人到远程服务器,但当我安装不和谐js.it给予我的错误一样

gyp ERR! node -v v16.19.1
npm ERR! gyp ERR! node-gyp -v v9.1.0
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! 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 build --fallback-to-build --module=/root/botV14/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.17/opus.node --module_name=opus --module_path=/root/botV14/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.17 --napi_version=8 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/root/botV14/node_modules/@discordjs/node-pre-gyp/lib/util/compile.js:85:20)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1100:16)
npm ERR! node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
npm ERR! node-pre-gyp ERR! System Linux 3.10.0-1160.15.2.el7.x86_64
npm ERR! node-pre-gyp ERR! command "/usr/bin/node" "/root/botV14/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd /root/botV14/node_modules/@discordjs/opus
npm ERR! node-pre-gyp ERR! node -v v16.19.1
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.4.5
npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-03-06T13_13_38_662Z-debug-0.log

我不知道该怎么补救。
我尝试安装节点gyp,但它似乎不工作

lsmepo6l

lsmepo6l1#

我知道如何修复这个.尝试安装opusscript而不是opus

相关问题