Node.js on a Raspberry Pi Zero W with dependencies not downloading automatically
NickName:Julio Machado Ask DateTime:2020-02-07T04:04:27

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

Copyright Notice:Content Author:「Julio Machado」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/60102702/node-js-on-a-raspberry-pi-zero-w-with-dependencies-not-downloading-automatically

Answers
Vendetta 2020-02-06T20:16:21

Firstly, I don't recommend hosting a Discord bot on a Raspberry Pi, but to stay in line with your question, I'll assume you insist on doing so. \n\nYou can try two things:\n\nIf you have apt installed, run the command apt install -a, which will install all packages missing from the previous output.\n\nThe second way is to just manually install the packages it says is missing.\n\nGo to the npm repository, search the missing package, then download the version it requested in the output.\n\nHope this helps!",


More about “Node.js on a Raspberry Pi Zero W with dependencies not downloading automatically” related questions

Raspberry Pi Zero W going to sleep

I have a small project using a Raspberry Pi Zero W. This is just a small Node.js server that I would like to be running at all times. I am using Raspberry Pi OS Lite (no desktop) The whole thing wo...

Show Detail

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...

Show Detail

Raspberry pi zero w MATLAB compatibility

Officially, MATLAB does not support the raspberry PI zero w. is there any way to unofficially utilize MATLAB to program for the zero w? Or, is there any estimated time for the zero to become suppor...

Show Detail

Raspberry Pi Zero W running Node.js

I am currently running a Hello World program on my Raspberry Pi Zero W with Node. My only code is a console.log statement. This program takes up to 5 seconds to run. I have also ran some smaller py...

Show Detail

Selenium (Maybe headless) on raspberry pi zero w

i have had a rough time getting my scripts to work on my raspberry pi zero w and the last program i need installed requires selenium. This script was designed for windows 10 + python 2.7 because i ...

Show Detail

Gradual increasing CPU usage with noble.on('discover') event in Node.js on Raspberry Pi Zero W

I have a set of Raspberry Pi Zero Ws running a Node.js application which requires the Noble package in its most basic functional configuration. The described configuration includes initializing Blu...

Show Detail

Raspberry Pi Zero emulate mouse

I'm looking for a way to use my Raspberry Pi Zero as a HID mouse. Goal: I put the Pi in my computer and it automatically starts to move the mouse quickly from top to bottom and from bottom to top....

Show Detail

Raspberry Pi Zero emulate mouse

I'm looking for a way to use my Raspberry Pi Zero as a HID mouse. Goal: I put the Pi in my computer and it automatically starts to move the mouse quickly from top to bottom and from bottom to top....

Show Detail

Adacore Gnat for Raspberry Pi Zero

I started playing around with Adacore Gnat 2016 for Raspberry Pi. After a few trivial tests on the Raspberry Pi 2 I switched to the Raspberry Pi Zero W and everything failed. I was a bit naive and

Show Detail

Multiple programs on Raspberry Pi Zero W

I was wondering if you can have multiple programs on a Raspberry Pi Zero W installed and have an overview menu on the Raspberry where you can then choose one of your applications you want to run? For

Show Detail