【发布时间】:2020-05-22 22:56:28
【问题描述】:
我制作了一个 Discord 机器人,我想将它托管在 Pi 上,但是一旦我让 node.js 工作,我就遇到了安装 npm 的墙,但依赖项不会随它一起下载。有人可以帮我吗?
代码
pi@raspberrypi:~/bot $ npm i discord.js
npm WARN deprecated snekfetch@3.6.4: use node-fetch instead
npm WARN discord.js@11.1.0 requires a peer of bufferutil@^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.1.0 requires a peer of erlpack@hammerandchisel/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.1.0 requires a peer of node-opus@^0.2.5 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.1.0 requires a peer of opusscript@^0.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.1.0 requires a peer of sodium@^2.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.1.0 requires a peer of libsodium-wrappers@^0.5.1 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.1.0 requires a peer of uws@^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN greeter-bot@1.0.0 No repository field.
npm WARN greeter-bot@1.0.0 No license field.
+ discord.js@11.1.0
updated 1 package in 24.205s
【问题讨论】:
-
如果我是你,我会检查你的依赖关系的架构。例如,Mongo 只能使用 x86 处理器,而 raspberry 是 ARM。如果我是对的,请告诉我,以便我详细说明。
标签: javascript node.js npm discord.js raspberry-pi-zero