Search code examples
javascriptnode.jsnpmdiscord.jsraspberry-pi-zero

Node.js on a Raspberry Pi Zero W with dependencies not downloading automatically


I Made a Discord bot, and I wanted to host it on a Pi, but once I got node.js working, I ran into a wall where I have npm installed, but the dependencies won't download with it. Can someone help me?

Code

pi@raspberrypi:~/bot $ npm i discord.js
npm WARN deprecated [email protected]: use node-fetch instead
npm WARN [email protected] requires a peer of bufferutil@^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of erlpack@hammerandchisel/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of node-opus@^0.2.5 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of opusscript@^0.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of sodium@^2.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of libsodium-wrappers@^0.5.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of uws@^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.

+ [email protected]
updated 1 package in 24.205s

Solution

  • well I fixed it by first installing the npms on my pc to a specific folder then transferred it with Filezilla