Questions tagged [nodejs]
Event-driven I/O server-side JavaScript environment based on V8. Includes API documentation, change-log, examples and announcements.
597
questions
-1
votes
1
answer
45
views
Error during apt upgrade for NodeJS
I encounter this problem while trying to sudo apt upgrade my system:
Preparing to unpack .../nodejs_18.17.1-deb-1nodesource1_amd64.deb ...
Unpacking nodejs (18.17.1-deb-1nodesource1) over (12.22.9~...
0
votes
0
answers
1k
views
How to install Node JS latest version on Ubuntu 22.04?
Now, the latest version of Node is 20.11.0. However, every time I tried to install Node, it installed the 12.22.9 version.
This commands is not working, every time it installed the same version 12.22....
1
vote
1
answer
719
views
Unrecognized accessed paths - is my server being attacked?
My website seems to be having some malicious visitors and crashing my site often. I am now tracking what they are doing on my site. In my log, I found out they are accessing the following paths ...
0
votes
0
answers
138
views
Node.JS stuck at v14.20, I don't know how to update or even remove it
I don't remember how exactly I installed this version. Stupid, I know. When I do node -v I get v14.20.0. Trying to do sudo apt-get remove node (or nodejs) does not work.
I want to remove this version ...
0
votes
0
answers
42
views
Version issues while installing node packages
I'm trying to install mongoose. I have rechecked my node and NPM versions and they are LTS versions. I have tried to use nvm use --lts too. But still I'm facing this issue which I attached below.
0
votes
1
answer
87
views
Npx (node?) error on libstdc++.so.6 taken from "snap" folder
I have an error launching npx which refers to libstdc++.so.6 library:
/snap/core20/current/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /lib/x86_64-linux-gnu/...
0
votes
0
answers
79
views
NextJS 13 crashes my computer Ubuntu 22.04
So I recently updated from Ubuntu 20.04 to 22.04 (mainly to remove the SDA3 Crypt). I'm a an thus far except for one issue I keep facing. Everytime I run next dev, my laptop goes to 1 fps and ...
0
votes
0
answers
54
views
Do multiple running instances of the same executable binary share the same RAM image?
If I have, say, two long-running Node applications (think Express), do the two instances of Node code share the same physical memory?
Data segments certainly will be separate, but do all code segments ...
1
vote
1
answer
118
views
Cannot control terminal after installing Node
I can no longer control my Ubuntu 22.04 terminal. The terminal asks me to install ng-common and then I can't use the terminal. This is how my terminal currently looks like:
I was trying to install ...
0
votes
1
answer
3k
views
How to install and run pnpm?
When I try to run pnpm start after installed pnpm with this method: npm install -g pnpm, the result giving error:
0
votes
0
answers
177
views
need help solving weird build failure using a Ubuntu machine
My best guess is that something is corrupted on the machine, but I have yet to figure out what. The machine is running Ubuntu 22.04. The issue is trivial to reproduce:
yarn create vite my-vue-app --...
0
votes
0
answers
201
views
Trouble with NodeJS and the npx command on 22.04 LTS
I am trying to create my first react app via the npx command.
I found this answer to a question similar to mine.
So I tried this:
alias node='/home/sks/Downloads/node18.18.2/bin/node'
alias npm='/...
0
votes
0
answers
54
views
Ubuntu, Node.js, sqlcmd, sqlcmd-runner component: work locally (windows 10), restart (pm2) app.js on Ubuntu server, Why?
I code backend in Windows 10, vs-code, and upload code to Ubuntu server, node.js, MsSQL express.
In my case, I need to make a new database for every customer, then dynamically create a database ( no ...
0
votes
0
answers
93
views
Create an "intranet-in-a-box" that hosts Node.JS web application and is accessible from wifi
I have an OrangePi5 running Ubuntu Server 22.04.
Basically what I'd like is to have it host a node.js webserver application on the orangepi.
I want to make a wireless network on this same OrangePi and ...
1
vote
1
answer
668
views
How to deal with sh: 1: next: Exec format error?
I want to use npm to run a NextJS project on my Ubuntu 22.04 but every command gives me "sh: 1: next: Exec format error". Do you have any idea how to fix it?
0
votes
0
answers
117
views
bash: /home/linuxbrew/.linuxbrew/bin/node: cannot execute binary file: Exec format error
I am trying to install nodejs on wsl but I faced this issue
Commands I tried:
brew install node
brew link node
node -version
-bash: /home/linuxbrew/.linuxbrew/bin/node: cannot execute binary file: ...
0
votes
0
answers
46
views
node-rebuild error when installing React frontend on Ubuntu 16.04
I am trying to install React frontend on Ubuntu 16.04. I am using node version-14.21.3 and npm version:6.14.18. I am also using node-gyp global version 9.4.0. I am still getting a node-gyp rebuild ...
1
vote
0
answers
63
views
how to perform commands from the "login shell"
I noticed that several programs (ie webstorm) run with their own manager, and thus through the login shell (running through the jetbrains toolbox to manage versions and updates smoothly), which I ...
0
votes
0
answers
276
views
node_modules installation on external SSD fails with "EPERM" error when installing packages
I'm trying to install Node.js packages on an external SSD connected to my Ubuntu operating system. However, I'm encountering an error during the installation process. Here are the details:
Operating ...
0
votes
0
answers
51
views
Nodejs connect to mongoose failed on server(ubuntu 20.04), but worked on local
I am able to connect my node.js app via MongoDB url provided by mongodb.com. But in the server(ubuntu 20.04), it,s not connecting.
I am sure the database URL is accurate on the server. Also the server ...
0
votes
1
answer
254
views
Change node level without invoking nvm
Looking to switch to a different node release without using nvm as I am struggling to use nvm right now. I am updating angular from 14 to 16 on ubuntu 22.04.2 LTS. After the update from 14 to 15, I ...
0
votes
1
answer
507
views
What is meant by needed in Ubuntu CVE status?
In the below link, the status of the CVE shows needed for nodejs and jammy. What does it mean?
https://ubuntu.com/security/CVE-2021-3449
0
votes
0
answers
203
views
How can I fix the vulnerability CVE-2021-3449?
I have installed nodejs package (version 18.16.1-deb-1nodesource1) on Ubuntu 22.04. Trivy vulnerability scan identified CVE-2021-3449. It is related to OpenSSL version 1.1.1 to 1.1.1j. But the OpenSSL ...
0
votes
0
answers
537
views
Issue with node version
I'm trying to run the following command in a Angular project "npm run ng", but I'm getting a warning that my Node.js version is incorrect.
Node.js version v10.23.0 detected.
The Angular CLI ...
0
votes
1
answer
57
views
Does Ubuntu Studio require or recommend its own packages for node, react, python core or libraries?
I use Blender weekly and Darktable, OBS, Krita enough to consider Ubuntu Studio as the heart of a new workstation I'm building. VSCode with one or more node, react, python Workspaces are running 100% ...
0
votes
1
answer
465
views
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Trying to Install a specific version of NodeJS on Ubuntu 22.04.2 LTS
Im trying to install NodeJS version 14 On Ubuntu 22.04.2LTS but this error pops up
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Here's the Full log if anyone needs it:
Reading ...
1
vote
0
answers
51
views
npm package connect-pg-simple webpack issue while creating session
Getting issue with [email protected] package while building app using webpack
Line of code generating below issue
"ERROR in ./node_modules/connect-pg-simple/index.js 82:4
Module parse ...
0
votes
0
answers
46
views
qemu:Nodejs test is failing with tls_setup_handshake:no protocols available::/usr/src/debug/openssl/3.1.0-r0/ssl/statem/statem_lib.c:104 on Qemu
I have tried to run nodejs tests on qemu target but parallel/test-tls-getprotocol is failing with below error
=== release test-tls-getprotocol ===
Path: parallel/test-tls-getprotocol
node:events:491
...
1
vote
1
answer
503
views
Error while using create-react-app
During an attempt to install create-react-app on my os (unbuntu 22.04), I got this output from the terminal.
t*****@poudlardo:~$ sudo npm -g install create-react-app
ERROR: npm v9.6.4 is known not to ...
0
votes
0
answers
127
views
VPS Discord.js Music Bot 410 Error
i trying download youtube video and i getting error 410 have someone idea how to fix that i using version 20.04
for downloading i using nodes
code:
const fs = require('fs');
const ytdl = ...
0
votes
0
answers
351
views
NPM install fail unless --no-bin-links is used. Why is that? Probably Ubuntu file permissions, still unsure
There's a lot going on with this drive and I'm not sure where to start troubleshooting. I have a HDD which is partitioned to have 10GB of unallocated space. I formatted as FAT32 and mounted that ...
0
votes
1
answer
402
views
While installing nodejs 18.15.0 LTS via curl the file nodesource_setup.sh contents a 404 error
the command is
curl -sL https://deb.nodesource.com/setup_18.15.0 -o nodesource_setup.sh
look like the setup file is wrong as it says "404" as file content.
Is it something being done wrong ...
0
votes
0
answers
305
views
Ubuntu 22.04 resource (cpu, ram, swap) issues
I am on a fresh Ubuntu 22.04 installation on a ThinkPad E15 (16gb ram, 512gb ssd, [email protected] x8, Radeon 550x).
The system is used to run 7 docker containers and multiple node processes (in ...
2
votes
0
answers
397
views
node-acorn installation problem with apt
Trying to run sudo apt install node-acorn produces an error:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
...
2
votes
1
answer
984
views
Installing latest NodeJS on Ubuntu 22.04 via WSL on Windows 11
I am in Ubuntu 22.04 via WSL on Windows 11.
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
is returning :
## Installing the NodeSource Node.js 18.x repo...
## Populating apt-get ...
0
votes
1
answer
2k
views
Unable to install nodemon globally on ubuntu 22.04 LTS
Initially I installed node using the command sudo apt install nodejs. This command installed an older version of node and npm so I removed the package using the command
sudo apt-get remove --purge ...
1
vote
1
answer
116
views
Terminal black screen after deleting and reinstalling Node and npm
I was facing a problem with Node.js, so I decided to uninstall npm and node completely and reinstall them. Now I have a black terminal with no text, and I'm not able to type anything either.
I haven'...
0
votes
1
answer
932
views
Unable to run "nvm install --lts"
I get this error.
Installing latest LTS version.
curl: error while loading shared libraries: libkeyutils.so.1: cannot open shared object file: No such file or directory
Version '' (with LTS filter) ...
0
votes
0
answers
98
views
Trying to update Node version: The following packages have unmet dependencies: mongodb-org
This is my Dockerfile and it runs without problems:
FROM node:12 as build
# Install mongo in container for mongodump command
RUN wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | apt-key ...
2
votes
2
answers
2k
views
Ubuntu 20.04 terminal has no prompt after setting up node for setting up Angular environment
When I open terminal, I see no prompt. Pressing any button does not help. I have seen this question, but no solution works as I can't enter commands at all. Terminal is just there, doing nothing.
I ...
0
votes
0
answers
239
views
Resolving default port 443 takes forever
I have an expressjs server for my website. During development, it worked perfectly and while in deployment, I tried changing to default port 443 to get rid of the port in the url. However, this ...
0
votes
1
answer
132
views
nodejs seems to be installed but it1s not available [duplicate]
I am having trouble with installation of nodejs version 16 (I tried with v14 and v18 with same results). The default version for ubuntu is v12 but I need higher.
I followed instructions from https://...
0
votes
1
answer
103
views
Installation exits before I can press Y to continue when installing nodejs
Im a new Ubuntu/Linux user and im having a bit of trouble installing nodejs. I tried installing it using sudo apt install nodejs and it returned this:
Building dependency tree
Reading state ...
-1
votes
1
answer
261
views
NODE_SKIP_PLATFORM_CHECK in exe file
I need to run exe file in linux, but when i try to do it i see this :
How can i fix this? I use Kubuntu 20.04 I know that I can run this program by source code, I need to run it through the exe file
0
votes
1
answer
2k
views
Websocket sending blob object on live server and string on local server
I am new to Ubuntu and recently created a project with WebSocket.
Everything works as expected on local server but on live server I get following error:
Uncaught SyntaxError: Unexpected token 'o', &...
1
vote
0
answers
120
views
Installing Nodejs 16 on remote ubuntu 18 I see old nodejs 14 version?
I want to upgrade nodejs on my remote ubuntu 18.
I run update commands, I do not see any errors, but checking node version at the end I see old 14 version...
root@nsn-do-lamp:~# uname -a
Linux nsn-do-...
1
vote
1
answer
2k
views
I tried to install NodeJS v14 and broke everything, how to install new version without breaking dependencies?
So I found out that for some reason, unlike on Windows you don't just get to chose your NodeJS version. When I install it normally, I get version 10, via command:
sudo apt-get install nodejs
Tried on ...
0
votes
0
answers
495
views
Why does apt package manager on ubuntu 22.04 install a very old version of nodejs(16)
GNU nano 6.2 /etc/apt/sources.list M
deb http://us.archive.ubuntu.com/ubuntu/ jammy main universe restricted
I upgraded to 22.04 because I wanted to install a ...
1
vote
2
answers
13k
views
Updated node to 16.16.0, says 12.22.9 when I 'nodejs --version'
Sorry Linux n00b here.
I'm trying to update nodejs in a fresh installation of Ubuntu 22.04 in a VM.
When I run this:
nodejs --version
It outputs:
v12.22.9
I've seen in many places that to update ...
0
votes
0
answers
25
views
Installing NodeJs on Kubuntu 22.04 [duplicate]
I cannot get this thing to work.
I was following these instructions from digitalocean:
How To Install Node.js on Ubuntu 22.04
Then, I am getting this error messages:
sudo apt install nodejs
Reading ...