All Questions
Tagged with ubuntu-22.04 node.js
16
questions
0
votes
1
answer
125
views
Unable to install or udpate any libraries ModuleNotFoundError: No module named 'apt_pkg'
I'm using Ubuntu 22.04.4 LTS. When I try to install or update any package getting the below error
$ node --version
Traceback (most recent call last):
File "/usr/lib/command-not-found", ...
0
votes
1
answer
38
views
External API call timed out using fetch but working using curl
When I make a request to an external API from Node.js using fetch, I end up waiting until it times out. However, when I try the same request directly from the command line using curl, it works.
Fetch ...
0
votes
0
answers
154
views
robotjs automation to move mouse does not work on Ubuntu 22.04 VMware Fusion
I'm having an issue with running some automation code on a vm
my host is my Mac and I've opened an ubuntu 22.04.3 vm.
I'm using robotjs as the package to move the mouse on screen.
when I run the code ...
0
votes
0
answers
48
views
Can't add a local direcotry as a depdency (WSL2, Ubuntu-22.04, node)
This is parts of my package.json
"dependencies": {
"pkgname": "file:dirname"
}
when I run npm i, following error occurs:
npm ERR! code EISDIR
npm ERR! syscall ...
0
votes
1
answer
453
views
Ghost Blog: Issues Updating Node Version
I am attempting to update the Node version to the latest supported version at the time of writing; v18. I have followed the instructions exactly step by step. However, despite this, it installed v20.9....
0
votes
1
answer
2k
views
Installing NVM - curl: (23) Failure writing output to destination - Permision denied
I was trying to download the node 18 on Ubuntu 22.04, however, I couldn't do it by apt-get or do so by nvm. I need help, because without node I can't develop my projetcs. I'm from Brazil, so some of ...
0
votes
0
answers
145
views
Cannot use Prisma ORM in my ubuntu 22.04.03 LTS
My glibc version is 2.35 and Prisma requires at least 2.33 but it still does not work in my system. I can develop schemas and migrate schemas and all but the issue only arises when I try to make a ...
0
votes
1
answer
494
views
NPM not available outside root when installing node via snap
I just installed node on Ubuntu 22.04 via snap using the following command, per GitHub page instructions:
# snap install node --classic
Afterwards, node and npm both reported their versions ...
2
votes
1
answer
1k
views
Node version is different in PhpStorm and Ubuntu
After updating node my PhpStorm terminal is still showing the older version while my Ubuntu terminal is showing the updated version.
I came across this issue when running npm start and npm install ...
0
votes
0
answers
823
views
node.js URL module throws an error when parsing the URL directly from the Request object of the http server
Node.js v18.15.0
Ubuntu 22.04
NPM 9.5.0
When creating the routing operations of my node.js http server, the WHATWG URL standard throws an error when I pass it the response.url directly.
const ...
0
votes
1
answer
339
views
ndb unable to download chrome and run (Error: read ECONNRESET)
I have tried multiple times to now run ndb. It goes to downloading chrome then throws this error. ndb is getting installed but when opening a file with it I face this error.
`
{ndb server.js
events.js:...
2
votes
2
answers
2k
views
Cannot install nodejs on ubuntu 22.04
im trying to install NodeJS LTS on my vm. But ubuntu (22.04) throws an error
Error:
root@web-server ~/server# sudo apt list nodejs
Listing... Done
nodejs/unknown 18.12.0-deb-1nodesource1 arm64
N: ...
0
votes
1
answer
394
views
Ndb debugger for node.js won't start
Im trying to start the ndb debugger from VS code, but every time i run the "ndb server.js" command, a window opens and closes immediately and i get this error:
node:events:491
throw er;...
0
votes
1
answer
579
views
Cronjob and logging NodeJS project on Ubuntu 22.04
I have a Typescript project using morgan and morgan-daily-rotate for logging. It does HTTP requests on 1 server to fetch some stock information and updates that stock information on another server. ...
2
votes
0
answers
483
views
Node version in npm EBADENGINE error is different from node -v
Whenever I run sudo npm i in my project folder to install dependencies, it prints out lots of errors like this:
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'peek-readable@5....