Questions tagged [node.js]

Node.js is a platform built on Google's V8 JavaScript runtime

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

npm installation errorno -104

I am trying to install a package tree-sitter-cli using the latest npm ❯ npm -v 8.6.0 But keep getting the following error. 63 timing command:i Completed in 885ms 64 verbose stack Error: command ...
user avatar
  • 101
-1 votes
0 answers
24 views

JSON Sever on the Windows 7

I have problem with installing JSON Server since I use Windows 7 x64. It seems like that latest version of node.js that is supported on Windows 7 is node.js 13. When I try to use command npm install -...
user avatar
0 votes
0 answers
122 views

NodeJS can't find python: gyp ERR! find Python

I'm trying to run a script but nodejs can't find python for some reason. I have tried reinstalling python, reinstalling nodejs, reinstalling my OS, running (and rebooting afterwards): export PYTHON=&...
user avatar
  • 1
0 votes
0 answers
29 views

Nginx keeps redirecting to the wrong app. I use reverse proxy, same instance, 2 different apps with different domains

I have been struggling with this problem for 2 days and I'm still unable to understand what's going on Here is the context: I'm currently self hosting a couple of web applications in my raspberry and ...
user avatar
  • 1
0 votes
0 answers
11 views

Ingress not routing traffic to service (Kubernetes/Helm/Ingress/Ngxinx)

The problem I'm currently working on a webAPI which I have an nginx ingress controller controlling traffic to my cluster. I have got it 90% working where the paths for pgweb (http://lnd.local/pgweb) ...
user avatar
0 votes
1 answer
110 views

How to solve installation errors with VS code server remote?

Disclaimer: I have no clue of node.js, but I want to install vs code remote development on my ARMv7 NAS. It includes node, but this failed with "Illegal instruction". After a long search I ...
user avatar
  • 1
0 votes
0 answers
133 views

Cannot install node sass

I had this issue on my docker box, so I was wondering if it was my docker box, so I tried it on Windows after opening git bash as administrator and then executed a simple npm insall command $ npm ...
user avatar
0 votes
0 answers
97 views

Permission denied installing Node.JS packages

i am using manjaro, when i want t download a package (nodemon...) it outputs : npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /usr/lib/node_modules/nodemon npm ERR! errno -13 npm ERR! Error:...
user avatar
0 votes
0 answers
67 views

How to run multiple stream in FFMPEG in RTSP?

I am new in FFMPEG RTSP Suppose I have two media stream https://localhost:6147/?url=rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov and https://localhost:6147/?url=rtsp://ipcam....
user avatar
0 votes
0 answers
144 views

Can’t access NPM after installing NodeJS on an Amazon Linux machine

This on an Amazon Linux machine (CentOS derived). I installed NodeJS using Yum. I verify it is there on the root account. One caveat is I cannot use NVM [root@my-ip ~]# npm --version 8.1.0 [root@my-ip ...
user avatar
0 votes
0 answers
11 views

how to update node js for security issues in windows 10

I have installed node js 14, but in 12 october 2021, there were fix and updates of security issues. Are the issues fixes doe automatically, if not how can update node js to have those fixes
user avatar
0 votes
1 answer
38 views

Ubuntu server Iptables rerouting not working properly

I am trying to setup a simple node.js express app on ubuntu server. I wanted my app to listen on port :80 but it was throwing errors on startup so i changed it to listen on port :3000 (I don't really ...
user avatar
0 votes
1 answer
285 views

WSL2 127.0.0:4200 with angular ng server working, not with express 127.0.0.1:5000

Recently I installed WSL2 with ubuntu 20.04. I successfully installed nodejs. When I run my angular project with ng serve works well. My problem is that a expressjs app runned with nodemon app.js can´...
user avatar
  • 101
0 votes
0 answers
88 views

Express Post not working

I tried to run this sample code from my Node.js course. When I entered this url http:// localhost:3000?cart=3&pagesVisited=4&utmcode=837623 The req.url didn't return the query string ...
user avatar
0 votes
0 answers
34 views

Is it possible to generate ETag of file which is going to be stored in AWS s3 bucket?

I am uploading a huge amount of files to the AWS s3 bucket. sometimes, the same files are getting stored as versions of older files. So, my question is I want to generate ETag for same file before ...
user avatar
0 votes
0 answers
20 views

How to set a VPN for my backend API only while it downloads

I have set my own server for my anime collection and as a part of it I want to set a VPN to my backend while it downloads torrents and not while it uploads to a cloud storage like S3 cause the ...
user avatar
0 votes
1 answer
11 views

Current directory of process changes when initiated as a service

I've written this service unit to run with systemd: [Unit] Description=NodeJS, Express server [Service] Type=simple ExecStart=/usr/bin/node /home/sm/test.js ExecReload=/bin/kill -HUP $MAINPID [...
user avatar
  • 246
0 votes
1 answer
3k views

Node.js on Alpine Linux inside Docker: update to latest minor version

I want to create a Docker image which does two simple things: Pull node:14-alpine Update to the latest minor Node.js version I've read that both n and nvm have their issues on Alpine Linux. So, what ...
user avatar
  • 55
1 vote
1 answer
191 views

Could not install Node.js using .msi (Error 1609)

I'm trying to install Node.js 14.17.2 on my computer but I get the same error each time. But let me tell the full story. A few days ago, I tried to install the latest Node.js version (16.4.1) to do ...
user avatar
0 votes
1 answer
20 views

Wanting to migrate a wordpress project from localhost to a local domain name server/virtual host

I have a WordPress project that currently resides in WAMP on the standard localhost server. I also have node.js installed to automate my workflow. I would like to create a local domain server/virtual ...
user avatar
  • 101
1 vote
1 answer
359 views

How to use Node packages without internet connection?

We have been using Node in production for a while now and I’m curious to know other companies deploy Node packages in their prod systems. Do you have your own Node repos like Maven or you build ...
user avatar
  • 121
0 votes
1 answer
78 views

Unable to install `nodejs` through `nvm` in Manjaro Linux

I use atom as my text editor. I want to install nodejs using nvm but I already have nodejs package installed in my Manjaro as a dependency of some other package. I found out that atom depends on apm ...
user avatar
  • 125
0 votes
1 answer
80 views

FFMPEG - Combine Image + Audio into Video, but Output is longer than the Audio File?

I am trying to combine a static image & an audio into a video. I want the video to be as long as the audio file. I am using ffmpeg and am executing it via nodejs: var args = [ "-loop"...
user avatar
1 vote
1 answer
254 views

NodeJS + Nginx 403 Forbidden but URL:PORT is working

I have a NODEJS website on production and I can't access to : https://mydomain1.com => 403 Forbidden https://mydomain1.com:443 => 403 Forbidden But everything is working when I add port &...
user avatar
  • 141
0 votes
1 answer
27 views

Always run Mongo Service

I need to start mongo database for my NodeJs app on my VPS, I did : sudo systemctl start mongod So if I want to start it a boot I did : sudo systemctl enable mongod Buf what if mongod crash how can ...
user avatar
  • 141
0 votes
0 answers
23 views

Nginx don't redirect to nodeJs port

I have a NodeJS app on port 8080 and my Nginx file look like this : server { listen 80 default_server; listen [::]:80 ipv6only=on; root /var/www/html; index index....
user avatar
  • 141
0 votes
0 answers
64 views

Spawning child processes from root using runuser command

I am working as an intern for an online coding platform startup (similar to LeetCode or HackerRank). The backend is written in Nodejs. Instead of running the code in a sandbox of some sort, the lead ...
user avatar
  • 101
0 votes
1 answer
47 views

Why does node report old version despite having installed NVM and latest LTS, when asking as root through sudo?

Before installing NVM and latest LTS Node for foo user: foo@ubuntu: which node /usr/bin/node foo@ubuntu: node --version v12.22.1 After having installed NVM and latest LTS Node: foo@ubuntu: which node ...
user avatar
  • 263
0 votes
2 answers
377 views

nginx doesn't start in docker, unless manually exec'ing into it and starting

I am fairly new to docker. I have to build a docker file that will start node express server and Nginx as a reverse proxy. but the problem is node server starts but Nginx does not start. when I ...
user avatar
0 votes
0 answers
23 views

How to prevent Kafka from re-process old messages after restart in nodejs

I have the following nodejs code to consume data from a designated Kafka broker: const mysql = require('mysql'); const con = mysql.createConnection({ host: xxx.xxx.xxx.xxx', user: 'xxxxx', password: '...
user avatar
1 vote
1 answer
1k views

How do I install or use NPM in Windows Subsystem for Linux?

I have the following error when I try to run my node.js project: ENV@ENV-L7490:/mnt/c/Users/ENV/source/Project$ npm i : not foundram Files/nodejs/npm: 3: : not foundram Files/nodejs/npm: 5: /mnt/c/...
user avatar
0 votes
1 answer
66 views

How to play an audio file on a specific soundcard output on OS X

I would like to play sound files Wav/Mp3 on a specified channel of a multichannel output on OSX. Unfortunatley afplay does not allow me to specify its output on osx as aplay does on linux. Looking for ...
user avatar
4 votes
1 answer
6k views

localhost and 127.0.0.1 working but not ip address in wsl windows 10

I recently switched from Linux to WSL2 (Ubuntu 20.04) on Windows 10. When I run any NodeJs application or a server like Apache or Nginx everything works fine on localhost or 127.0.0.1 but doesn't work ...
user avatar
0 votes
2 answers
127 views

Run terminal command on boot using crontab

I have a server and on every boot, I have to enter npm run dev on the terminal so Node.js server starts. How do I use crontab to do it for me on every boot? I want something like this; @reboot echo &...
user avatar
1 vote
2 answers
582 views

Can I install and run Python SimpleHTTPServer and Node.js Http-server together at the same time in my local computer?

I am a beginner in this field, and Google search of my question was of no help. I am planning on learning the basic first using Python SimpleHTTPServer and simultaneously start poking around in Node....
user avatar
0 votes
1 answer
66 views

Avoid pushing node_modules everytime docker image is built

So I have a NodeJS Project and I build the image every time there is a change and push it to our registry. Now the thing is I don't want to upload node_modules every time it pushes to registry, ...
user avatar
4 votes
1 answer
404 views

Launch a WSL script through Windows Terminal: node: command not found

I am trying to run a node.js script in WSL from WT using the syntax wsl.exe <command>. However I can't get it to find Node when launched this way and get the following : PS C:\> wsl.exe -- ...
user avatar
  • 141
1 vote
1 answer
61 views

npm can't be found on hyper-v / ubuntu 20.04

I'm running Ubuntu 20.04 on Hyper-V with WSL2 and installed nodejs by doing this: sudo apt-get install -y nodejs When I did node -v I got v14.13.1. When I do npm -v I got a "no such file or ...
user avatar
  • 5,820
1 vote
0 answers
388 views

Intel Core i7-1065g7 Windows 10 node 6.9.2 correctly not working?

I'm trying to use node 6.9.2 and install some packages. But it gives following SSL error. 101057795:error:1408D07B:SSL routines:ssl3_get_key_exchange:bad signature:openssl\ssl\s3_clnt.c:2010
user avatar
0 votes
2 answers
2k views

killing a node process restarts with a new PID

I have a node process running in an ubuntu machine When I do ps -ef | grep node then I can't find the process ID in the list. I have a few other node processes going on. Then I did sudo netstat -lpn |...
user avatar
1 vote
0 answers
284 views

I can't uninstall nodejs

I had an external hard drive that I used to program on both, the notebook and in the PC. There I had installed my Nodejs. Whenever I needed to code I opened the HD. However, my HD broke, and I lost ...
user avatar
  • 11
0 votes
1 answer
173 views

Download Cypress For Linux

I'm trying to download cypress for Linux so I would be able to install it later so my cypress project would run there. In cypresses website, they say this link: [https://download.cypress.io][1] is "to ...
user avatar
  • 113
1 vote
1 answer
64 views

Will running a computer program perpetually damage my computer?

I've written a Node.JS script for a Twitter bot that I made recently. It sends a tweet to the Twitter API at the top of every hour. I plan on running this in my command prompt perpetually, but am ...
user avatar
1 vote
2 answers
1k views

How to upgrade node js to a specific version in windows 10

I want to upgrade node js to v10.15. How can I do it with or without command prompt in Windows-10.
user avatar
  • 163
0 votes
0 answers
170 views

Why does Node.js's ICMP listen get two responses when I ping localhost?

I am currently using the ICMP NPM package for developing a custom contribution node for node-red. After a couple of days' testing and making sure everything is okay before publishing I stumbled upon ...
user avatar
0 votes
1 answer
138 views

How to create mp4 or gif from background and a set of positioned changes

Here's the scenario: I have a static background png file, let's say 1920x1080 I have a set of few hundreds of small png files (each with different dimensions, smth like 30x100, 10x20, 200x200 etc), ...
user avatar
0 votes
0 answers
286 views

Is there a way to install Node.js without admin rights on a mac?

I'm trying to use Node.js on my work computer but I don't have admin rights. My company is pretty strict on what we can install, even if I explain why I need it. So, I'm wondering if it is possible ...
user avatar
  • 101
0 votes
1 answer
173 views

Dockerfile COPY specific branch

My Dockerfile builds an image copying the content of the current working directory, but always uses the master branch. I would like to specify a branch during the COPY or ADD operation. FROM node:10....
user avatar
  • 185
0 votes
1 answer
105 views

Can one process use multiple cors at the same time in parallel?

I'm still a bit hazy with my understanding of a computer processor in relation to the work of a process. Being specific, I plan on getting a new computer and ultimately want to get the fastest compile ...
user avatar
1 vote
1 answer
3k views

How to fix "Assertion failed: new_time >= loop->time, file c:\ws\deps\uv\src\win\core.c, line 309" error?

I have a HP laptop with Windows 10 and when I use node.js (v 12.14.0) I get this error: "Assertion failed: new_time >= loop->time, file c:\ws\deps\uv\src\win\core.c, line 309". I read from ...
user avatar
  • 21

1
2 3 4 5
9