Questions tagged [nodejs]
Event-driven I/O server-side JavaScript environment based on V8. Includes API documentation, change-log, examples and announcements.
582
questions
0
votes
1
answer
26
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
21
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
18
views
npm package connect-pg-simple webpack issue while creating session
Getting issue with connect-pg-simple@8.0.0 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
12
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
...
0
votes
1
answer
80
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
35
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
99
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
193
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
90
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, i710510U@1.8GHz x8, Radeon 550x).
The system is used to run 7 docker containers and multiple node processes (in ...
1
vote
0
answers
118
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
...
1
vote
1
answer
283
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
0
answers
352
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
58
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
488
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
26
views
When I use older node version the ubuntu's "make" command fails but succeeds when I use the latest node versoin, why?
I am trying to run the react code that depends on the older node version, node version 16.14.0. When I use make to run initialization scripts it fails after using the node version 16.14.0.
But ...
0
votes
0
answers
69
views
Ubuntu unable to install latest Nodejs version
I tried to install nodejs 16 but I keep getting older version
first
$ sudo apt install -y curl
then
$ curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
then whein I install nodejs:
...
0
votes
0
answers
71
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 ...
0
votes
0
answers
421
views
npm error ENOTEMPTY blocks package installation
When I try to use npm install, I am getting a error ENOTEMPTY error. How can I force npm to ignore this and overwrite the destination?
0
votes
0
answers
23
views
why is nodejs an old, unsupported version but clang is the latest bleeding edge version in 22.04.1?
Python, clang, and numerous other common development packages are very up to date, but nodejs is comically behind. why? is it due to a dependency on a problematic version of libv8, or..?
0
votes
0
answers
158
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
96
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
68
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
117
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
773
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', &...
0
votes
0
answers
160
views
Installing Node 14 on Ubuntu 22.04
Can someone explain the best approach for installing this on 22.04 and why Node 12 is the default. Have it working but wanted to understand why this is. VS Code (vsix) and Angular require node 14 just ...
1
vote
0
answers
82
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
1k
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
208
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 ...
0
votes
2
answers
5k
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
113
views
I can't install shopify upgrade version on Ubuntu os
npm run shopify version
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/naresh/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/naresh/...
0
votes
0
answers
24
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 ...
1
vote
0
answers
127
views
How do I figure out the errors that appear in the terminal when I install Node.js and npm?
I tried to install npm and Node.js to my computer today. The operating system in my computer is Ubuntu 20.04LTS. But when it was installing there were a whole bunch of errors in my terminal. It will ...
0
votes
0
answers
260
views
NGINX not working with nodejs SMTP server
I made a SMTP server in nodejs using "smtp-server" module and tested its working using a mail sending program and tested it on local machine with program as bellow:
SMTP server:
const ...
0
votes
0
answers
237
views
Unable to update the node version in ubuntu in aws from aws code pipeline buildspec.yml
I have an angular app. I am trying to do CICD from GitHub using aws code-pipeline. In my buildspec.yml file, I have the following commands.
phases:
install:
commands:
- echo installing ...
0
votes
0
answers
649
views
Uncaught TypeError: Buffer.from is not a function
I'm trying to migrate an ethereum smart contract using Truffle and I get the following error:
Uncaught TypeError: Buffer.from is not a function
at Object.601827 (/home/patricia/.nvm/versions/node/v13....
0
votes
0
answers
561
views
nodejs install/update erorr Ubuntu 20.04
trying to install nodejs on my unbuntu machine.
Followed these instructions where I first type:
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
Then I type:
sudo apt-get install -y ...
0
votes
1
answer
493
views
systemd - running Node as a service
I currently have a server, which contains a NextJS project, running on port 4000.
The scripts part of the the package.json file is as follows:
"scripts": {
"dev": "next ...
0
votes
1
answer
524
views
install nodejs and npm on ubuntu 21.10, install sucessful but showing wrong version with "node -v"
I am new to js and wanted to install nodejs LTS version and npm on ubuntu 21.10. So, I followed the nodesources repository install instructions and it had stated to use the install script for LTS and ...
4
votes
2
answers
2k
views
I'm getting errors that I don't understand installing NodeJS on a freshly installed Ubuntu that is otherwise blank
I just installed Ubuntu 22.04 a few days ago. My laptop is almost entirely blank. So I am met with confusion when I try to install Nodejs using these DigitalOcean instructions and I get an error.
I do:...
0
votes
1
answer
1k
views
Error: /directory/node_modules/canvas/build/Release/canvas.node: invalid ELF header Ubuntu 20.04
I kept on getting an error after I was trying to start a Javascript file
Error: /directory/node_modules/canvas/build/Release/canvas.node: invalid ELF header
is there a way I could fix this issue
Node:...
-1
votes
1
answer
721
views
Jest: Got error running globalSetup with MongoDB
I'm trying to use Jest with MongoDB-memory-server, but every time i try to connect it i get this error, i would like to know from you guys if there's any way to solve it?
Error: Jest: Got error ...
0
votes
0
answers
734
views
Unmet dependencies when trying to update nodejs - 20.04
When I do open my terminal I'm receiving the following warning about my node version:
npm does not support Node.js v14.4.0
You should probably upgrade to a newer version of node as we
can't make any ...
8
votes
2
answers
6k
views
OpenSSL config cuases error in node js crypto. How should the config be updated?
This was originally posted to the nodejs Github issues page, but it appears that it is an issue with Ubuntu 22.04, so I'm re-posting it here hoping to get further advice. The original thread on Github ...
0
votes
1
answer
665
views
Error installing gtop on Ubuntu 22
I just installed ubuntu on my work machine and trying to get gtop working on it. It's saying I'm missing the node:process package, but I'm not able to find any solutions. I figured that the easy ...
5
votes
2
answers
5k
views
20.04 vs. 22.04 inside docker, with a 16.04 host == thread start failures?
I wouldn't believe it if it wasn't right in front of me.
So this is obviously an old host, I'm not even looking for a fix just telling you what I'm seeing so the next poor soul to google this nonsense ...
0
votes
1
answer
3k
views
Can't Install NodeJS 16 with curl
I've recently upgraded one of my virtual machines on DigitalOcean with Ubuntu 22.04.
Upon installing Node with the following command I receive an error: "## Your distribution, identified as "...
2
votes
1
answer
3k
views
netstat not showing any process running on any port in WSL Ubuntu in Windows 10
I have set up a nodejs server on 8080 port. When I put this command in the WSL Ubuntu terminal, it shows no results:
netstat -a | grep :8080
However, when I check this using Windows PowerShell ...
0
votes
2
answers
15k
views
Node.js is installed but not working
Node.js is installed but not working. How to solve it?
$ nvm install node
Downloading and installing node v18.0.0...
Downloading https://nodejs.org/dist/v18.0.0/node-v18.0.0-linux-x64.tar.xz...
#######...
0
votes
1
answer
976
views
Not able to install Node 14+ on Ubuntu 20.04
I tried installing Nodejs 14+ version on my Ubuntu 20.04 using nvm and nodesource PPA with both Sudo and normal user. But I am still getting permision required error.
0
votes
1
answer
100
views
Appropriate way to make nvm-installed versions of Node usable in Kubuntu Application Menu/Launcher?
When installing node with nvm, it works great in the terminal - you can run node applications with node path/to/app.js, as you'd expect.
However, if you create an Application Menu launcher in Kubuntu/...