Questions tagged [node.js]
Node.js is an event based, asynchronous I/O framework that uses Google's V8 JavaScript engine.
263 questions
2
votes
0
answers
41
views
What am I doing wrong here? (npm, root privileges ... ?)
Somewhat floundering. I'm trying to install and run an open-source app called "Swordfish", which is a CAT (computer-assisted translation) app.
I've never really built from source before in ...
0
votes
0
answers
63
views
FFmpeg not detecting input streams for RTMP live recording
getting this type of error
Opening an output file: rtmp://localhost:1935/live/stream.
FFmpeg stderr: [out#0/flv @ 0x600003b843c0] No explicit maps, mapping streams automatically...
FFmpeg stderr: ...
1
vote
1
answer
96
views
How can I specify which Node version to use when Node was installed with Homebrew?
I used Homebrew to install Node on Ubuntu 16.04.4 LTS:
brew install node
I'd like to use NodeJS version 18.8.0 or higher up to <20.0.0.
I therefore ran:
nvm install 18.18.2
However, I can't seem ...
-1
votes
1
answer
53
views
How can I install Node version 5.6.0 or higher on Ubuntu 16.04.4 LTS?
The computer is running Ubuntu 16.04.4 LTS 64-bit. Running nvm use 16.20.2 works fine and gives me nodejs 4.2.6 (checked with nodejs --version). I'd like to use Node version 5.6.0 or higher on it, so ...
-1
votes
1
answer
91
views
Mysql is closing the connection on Ubuntu
I built a MERN app (used mysql instead of MongoDB)
I deployed it on the VPS (Ubuntu 24.04)
everything seems okay but when I try to check the logs of my backend using pm2 package it gives me kind of ...
1
vote
2
answers
2k
views
How to run node v20.x on CentOs 7.9?
I've been stuck on this issue for too long. Basically I have a node v20.x app that I'd like to run on a CentOS 7.9 server. For reasons, we do not wish to upgrade the OS now but I'm sure there must be ...
0
votes
0
answers
371
views
PAM Login Service Authentication Failure for other users (Debian Bookworm)
I have an node-express api application that's running as a service where I implemented a PAM authentication using authenticate-pam and node-linux-pam' library. Whenever I call the /login endpoint it ...
0
votes
0
answers
143
views
Node.js recently started emitting all stderr in red text. How to handle this cleanly?
I use ANSI colorized text output in logs and other output that I emit on stderr in some of my programs. Since I've been doing this kind of thing for years, I am pretty familiar with the capabilities.
...
0
votes
1
answer
115
views
Mismatched versions warning when updating Node.js/NPM in Docker
In our Dockerfile we have:
FROM ghcr.io/puppeteer/puppeteer:latest AS pdf
WORKDIR /puppeteer
USER root
# Prerequisites
RUN apt-get update && apt-get install nginx -y
# Update
RUN npm update
...
1
vote
1
answer
523
views
How to encrypt a file with openssl like it’s done by node?
I’m trying to convert a NodeJS script that I’m using to encrypt JSON files to the openssl format, but I can’t find a way to get the exact same result.
Here is the NodeJS script:
const process = ...
1
vote
0
answers
213
views
File access permissions: Running app under PM2 gives EACCES denied for a file my app needs
I have an Ubuntu 22.04 environment.
I have a NodeJS app that is running a webserver and needs access to the certificates to enable HTTPS.
When I run the app under pm2 (user: brad), I receive a EACCES: ...
0
votes
1
answer
268
views
How can I start a NPM app from a desktop shortcut?
I have created a desktop shortcut for a npm application called TMXEditor, but it doesn't work.
I can launch the app if I do cd /home/souto/Apps/maxprograms/TMXEditor && npm start on a terminal....
0
votes
1
answer
257
views
Not able to install nodejs 21 in ubuntu wsl
When I try to install nodejs 21 in Ubuntu wsl I get the following error
curl -fsSL https://deb.nodesource.com/setup_21.x | sudo -E bash - &&sudo apt-get install -y nodejs
Error
The following ...
0
votes
0
answers
43
views
I think nodejs broke Linux Mint after it was about 50% done with updating: E: Sub-process /usr/bin/dpkg returned an error code (1)
So there's a lot here probably best explained by copy-pasting what happened on the terminal but the problem is I currently cannot open any windows that are already minimized, except Discord since it ...
0
votes
1
answer
57
views
Stay on a port listening to understand why it closes with which error
I should listen (I don't know) on a certain port, in this case the 8080, to understand why it closes and if so with what error.
I have a nodejs server running on the 8080, but I can't figure out why ...