Skip to main content

Questions tagged [node.js]

Node.js is an event based, asynchronous I/O framework that uses Google's V8 JavaScript engine.

Filter by
Sorted by
Tagged with
1 vote
4 answers
5k views

I was hoping to do something like this: echo 'foo' >&3 3| cat Basically, I want to write 'foo' to 3, and then only pipe the data in 3 to cat. But the above doesn't work, I get: bash: 3: Bad ...
Alexander Mills's user avatar
-1 votes
1 answer
437 views

I have this: producer-client | consumer-server the consumer starts a tcp server listening on a unix domain socket (something like that), and the client (the producer) will connect to it. However, ...
Alexander Mills's user avatar
1 vote
1 answer
10k views

I'm trying to install a node package using NPM, but it just gives a permission error. I could install packages without any issues yesterday, but for some reason it has stopped working. asgeir@...
Asgeir's user avatar
  • 131
0 votes
0 answers
184 views

I'm trying to compare the output of my fizzbuzz.js program: for (let i = 1; i <= 100; i++) { let out = ""; if (i % 3 == 0) out += "Fizz"; if (i % 5 == 0) out += "Buzz"; if (i % 3 &&...
Chef Tony's user avatar
  • 475
1 vote
0 answers
2k views

I installed babel-cli package via yarn globally yarn add babel-cli global I need to set env variable.documentation says bin folder should be here ~/.config/yarn/global. inside there are 4 js files. ...
Yilmaz's user avatar
  • 451
0 votes
1 answer
53 views

I'm attempting to run different node js versions on my centos 6. When I run node -v I get v10.16.0 I then run n And I can select node/8.16.0 ο node/10.16.0 node/11.0.0 I select node/8/16....
FabricioG's user avatar
  • 150
1 vote
1 answer
4k views

I currently broke my node setup by attempting to upgrade it following a tutorial. I added a symlink and I was told to just reinstall node on here since the symlink can't be undone. I went ahead ...
FabricioG's user avatar
  • 150
0 votes
2 answers
1k views

I have a node.js site running on port 8080 of my Linux server. I also have, on the same sarver, a PHP site (bugzilla) running on port 80. So my current configuration is: http://example.com:8080 (node....
lviggiani's user avatar
  • 3,649
0 votes
0 answers
2k views

I'm currently running a few node processes on PM2, but when I stop them with pm2, then run ps -ef | grep node, it shows the processes as still running. One of them is an express application that ...
Micah Gilbert's user avatar
1 vote
1 answer
397 views

Endless OS is a linux-debian distribution that runs on the Endless Mini computer. I found out about Endless form this itsfoss See this wikipedia. I'm trying to find a small PC that runs a nix OS ...
J S's user avatar
  • 113
1 vote
1 answer
276 views

using tmux as my dev environment. I have a standard split with vim on top, a three panes bellow that, one running npm start, one running the nodejs backend and the other one for stuff like git status. ...
William Iehl's user avatar
0 votes
1 answer
8k views

I am trying to install the npm through yum install npm command but it fails every time with the below log: epel/x86_64/metalink | 6.0 kB 00:00 google-...
raikumardipak's user avatar
2 votes
1 answer
2k views

CodiMD is great for collaborative work, but I would like to use it for personal notes on my laptop (Ubuntu 18.04), configured so that it works without an internet connection and uses as few resources ...
bitinerant's user avatar
1 vote
1 answer
170 views

Trying to build a zip package for AWS Lambda that runs a node app. I'm using OSX zip to package the lambda bundle like this: zip -dg -q -FS -R function.zip index.js "*.json" node_modules However, ...
Mrchief's user avatar
  • 173
5 votes
1 answer
2k views

How can it be, that my current cpu frequency (CPU MHz) for my Intel Core2 Duo T9400M is above max MHz while being on high load? ➜ lscpu [...] Model name: Intel(R) Core(TM)2 Duo CPU ...
0xnoob's user avatar
  • 153
1 vote
1 answer
3k views

To find a python script, I use pgrep -af python. Is there a similar command to find node.js scripts?
Dante's user avatar
  • 133
1 vote
0 answers
3k views

I did the following steps: git clone https://github.com/nibtehaz/NORTH-app.git curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - sudo apt-get install -y nodejs npm install # which caused ...
user3523406's user avatar
1 vote
0 answers
567 views

I'm trying to get a project running locally on Deepin. The project relies on node 6.10, I understand that it's an old version but it works. When the Dockerfile tries to run the sudo apt-get update, it ...
d3corator's user avatar
  • 111
0 votes
1 answer
711 views

I'm running online servers for a physics-based game with a backend in Node.js. Currently, the server can handle 10 games/worlds at a time before the next tick needs to be executed. With this in mind, ...
DonutGaz's user avatar
  • 111
0 votes
0 answers
63 views

Assuming one has the following directory: mkdir """ '''\n " And one queries the directory with: stat --printf '%n' ** #or for simplicity stat --printf '%n' $'\n'\'\'\'\\n$'\n' And captures the ...
TrevTheDev's user avatar
1 vote
1 answer
751 views

I'm getting the following when installing @sentry/[email protected] in a fresh node_modules (existing project). Needed for @sentry/webpack-plugin. Is there any way I can find out more about this "unknown ...
Cliff Armstrong's user avatar
4 votes
1 answer
3k views

I'm trying to get my nodejs app to start on boot. It runs fine if I start it from the command line as the user odroid. Here is my service file: [Unit] Description=ProImage After=network.target mysql....
cce1911's user avatar
  • 165
0 votes
2 answers
3k views

I have an ubuntu server. On which I have transferred some files which have some js and html code. I used http-server from node.js to start a web server so that I can display the html page on the ...
Baktaawar's user avatar
  • 101
0 votes
0 answers
110 views

I am trying to install mongodb from command line in debian 9. On running installation command i am getting following error Reading package lists... Done Building dependency tree Reading state ...
last_fix's user avatar
  • 103
6 votes
1 answer
4k views

Before I mention my problem, I have already checked in most of the questions related to systemd, but I couldn't find a convincing answer. I wrote a nodejs app that runs a server. const express = ...
Marios Simou's user avatar
0 votes
1 answer
1k views

Is there any way to run tmux cmds like tmux kill-server, tmuxinator attach etc. through nodejs. I have searched online but not able to find anything useful which can aid me to remove my error. I was ...
Sahil Aggarwal's user avatar
0 votes
1 answer
228 views

I have just managed to get my service status active via the help of yourselves, however it still appears that the node service is not actually running. So put simply, I know my node app is running, ...
Jamie Hutber's user avatar
0 votes
0 answers
6k views

I am simply trying to start my node application as a service I am pointing to the server.js file and have that set as executable. I would like to have this node app restarting on server reboot and ...
Jamie Hutber's user avatar
8 votes
1 answer
3k views

/usr/bin/env: ‘node\r’: No such file or directory I keep receiving this output when i try to run something. Any ideas on how to fix this?
Andrew Barrios's user avatar
1 vote
1 answer
642 views

I want to make an smart mirror, before I decide to buy a Raspberry pi I want to preview it on my old computer. I installed Raspberry pi (desktop version from homepage of Raspberry). Everything was ...
HieuC's user avatar
  • 43
0 votes
1 answer
10k views

I used jq -r '.version' package.json command to filter the version from package.json file using the terminal. Can we use jq command in Jenkins shell without locally installing it?
Janith's user avatar
  • 191
1 vote
1 answer
3k views

I am trying to run a Node.js app as a service in Debian 9. So, following some tutorials, I've made a service like that. [Unit] Description=bumer API Http Server [Service] PIDFile=/tmp/bumer-service....
Lionzinho's user avatar
0 votes
1 answer
32 views

I have two version of nodejs installed. One in /users/anaconda/bin/ and another by homebrew Now I want to use both NodeJS versions. I want to use conda version using conda-node and homebrew version ...
abhimanyuaryan's user avatar
0 votes
1 answer
1k views

I am currently trying to set up a cronjob that will start a node.js server whenever that server is down. For that purpose, I have written a simple script to test and start the node server. #!/bin/...
Junge's user avatar
  • 101
-1 votes
1 answer
2k views

In Node.js I use following code hash = crypto.createHmac('sha256', SECRET).update(fileContent).digest('hex'); to calculate HMAC. C++/Qt code analogue QByteArray hash = QMessageAuthenticationCode::...
Aleksey Kontsevich's user avatar
2 votes
2 answers
5k views

I've try to run this: sudo npm install npm@latest -g to test npm audit, but this command failed, I've got error: npm ERR! path /usr/lib/node_modules/npm/node_modules/fs-write-stream-atomic npm ERR! ...
jcubic's user avatar
  • 10.5k
4 votes
2 answers
4k views

I did on Debian testing sudo apt install nodejs but I'm missing npm. $ node -v v8.11.2 $ npm -v bash: npm: command not found What did I miss?
user3523406's user avatar
2 votes
1 answer
2k views

Say I have an http or tcp server running, which serves tarballs (.tgz files). Is there some way I can receive files individually so I can do something like this: nc localhost 5000 | how can I read ...
Alexander Mills's user avatar
0 votes
2 answers
3k views

I am trying to continuously run a nodeJs server on my VPS, I made a systemdservice and started it. I worked by my server is still not accessible, I can check the status and it works Okey : Service ...
Kaki Master Of Time's user avatar
1 vote
1 answer
12k views

My machine is Ubuntu 16.04. I want to start my node.js application when the machine boots up everytime. According to this post about autostarting services. I tried to make a service by doing the ...
b11's user avatar
  • 11
1 vote
1 answer
452 views

How could I find out how much storage all my development projects' nodeJS modules are taking up? Maybe there is a better way, but I have all the projects within a directory. I thought maybe using ...
MmmHmm's user avatar
  • 123
1 vote
2 answers
5k views

How can I allow reading specific root owned files by a non-root-user executed process? I'm running node.js under Linux/Ubuntu. I do not want to run my process with root authorization, but must have ...
GaryL's user avatar
  • 119
1 vote
1 answer
9k views

I installed Rocket.chat on my Debian Jessie, it works well and I want to start it automatically at boot as a service. To start Rocket.chat manually I need to $ cd /home/hung/Rocket.chat $ node main....
Hung Tran's user avatar
  • 273
4 votes
2 answers
5k views

I run Debian 9.3. I went to the NodeJS website to see how to install NodeJS v9.X on my machine and ran the code provided. curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash - sudo apt-get ...
Username's user avatar
  • 899
0 votes
1 answer
4k views

I'm trying to remove npm (EPEL repository), but yum wants me to remove nodejs as well. It's nodejs that is npm's dependency. Not the other way around. nodejs can live without npm just fine. Am I ...
x-yuri's user avatar
  • 3,623
2 votes
1 answer
5k views

I am trying to install the wallet for IOTA, as described here. I run but the command is not found. I am not clear which package npm is in apt search npm where I do not find the corresponding ...
Léo Léopold Hertz 준영's user avatar
0 votes
0 answers
595 views

I want to intsall serverless on my kali linux . In order to proceed for serverless installalation we need node js install , which i have already done . root@gpunk:~# npm --version 3.10.10 root@gpunk:~...
Sandip Kumar's user avatar
0 votes
1 answer
313 views

The tar file I downloaded is a binary (not source) distribution. I read an article that said to run tar --strip-components 1 -xzf in /usr/local but if I do this I cant see an simple way to remove ...
Shane's user avatar
  • 133
1 vote
3 answers
7k views

I just tried to install node and npm on Debian Stretch. I installed node like decribed here. After installing nodejs-legacy too I got the node command working but npm command still won't be found. ...
J. Dietz's user avatar
6 votes
1 answer
985 views

Per Atom text editor build instructions for freeBSD: pkg install node pkg install npm pkg install libgnome-keyring npm config set python /usr/local/bin/python2 -g Then: git clone https://github.com/...
rob's user avatar
  • 69