Questions tagged [node.js]

Node.js is an event based, asynchronous I/O framework that uses Google's V8 JavaScript engine. Node.js is commonly used for heavy client-server JavaScript applications. NOTE: Please read the Tag-Wiki before asking questions.

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

Node.js - or just Node as it's commonly called - is used for developing applications that make heavy use of the ability to run JavaScript both on the client, as well as on server side and therefore benefit from the re-usability of code and the lack of context switching.

It's also possible to use matured JavaScript frameworks like YUI and jQuery for server side DOM manipulation.

To ease the development of complex JavaScript further, Node.js supports the CommonJS standard that allows for modularized development and the distribution of software in packages via the Node Package Manager.

Applications that can be written using Node.js include, but are not limited to:

  • Static file servers
  • Web Application frameworks
  • Messaging middle ware
  • Servers for HTML5 multi player games

When asking questions about Node.js, you should:

  1. Make sure to check the official API Docs before asking, your question might be trivial.
  2. Isolate the problem and reproduce it with as little code as possible, if you can also use an online tool like JSApp for that, it's even better.
  3. If the question has nothing do with anything that's Node.js specific, please consider asking it as a question instead.
  4. Mention which version of Node.js you are running, when in doubt use node -v.
  5. Make sure to only use the Tag, since is ambigious.

Interesting Questions and Answers

Common Topics

Useful Links

Tutorials, Guides and Books

Talks and Presentations on Node.js

1026 questions
0
votes
2 answers

How to remove the trailing slashes from a URL with nginx

I'm trying to remove trailing slashes from urls. I searched a lot and tried some solutions but they didn't work form me. I tried this one rewrite ^/(.*)/$ /$1 permanent; but it leaves one slash at the end (example.com/ or example.com/post/) but I…
Igor Oleniuk
  • 1
  • 1
  • 3
0
votes
1 answer

How to stop an application started with NPM's forever start?

I started a NodeJS application with forever start app.js. The code had a bug and the server is not running and not responding. When I launch it again with npm start, I see that the port is already in use: events.js:288 throw er; // Unhandled…
miguelmorin
  • 249
  • 1
  • 5
  • 13
0
votes
0 answers

NodeJS libstdc error on CentOS 6.10 (EasyApache,cPanel)

I have installed NodeJS 8.9.3 and that was running perfectly. but after that i have started a project and that needs NodeJS Version > 10.0 so i updated my NodeJS 8.9.3 to currently stable version via NVM. but after updating i got error. Error Log…
Shubham Panchal
  • 51
  • 1
  • 2
  • 7
0
votes
1 answer

How to install Node.js 12 on CentOS 8?

I tried the following this post which states Application Streams are typically named for the version of the software that is included, e.g. nodejs:8 or nodejs:10 [...] ... but as you can see below: It's not working. $ dnf module list nodejs …
leonheess
  • 144
  • 3
  • 12
0
votes
0 answers

My server does not respond

I would like to have an address for my website like this : meteo.xyz.com I own the domain xyz.com I redirected the traffic from my domain to the digital ocean dns in my domain name provider : meteo CNAME 1800 ns1.digitalocean.com. meteo …
C Taque
  • 123
  • 1
  • 1
  • 6
0
votes
1 answer

Scheduled Copy Bigquery View/Query to Google Sheet

I have a BigQuery View/Query that every morning I need to run and copy the result to a Google Sheet. I am using Javascript, and plan to use the node.js BigQuery client library and the Google Sheets node.js API for interacting with BigQuery and…
Max888
  • 111
  • 3
0
votes
1 answer

How to load fabric client certs in google cloud function?

I'm trying to create a cloud function which includes certificate file in nodejs. Below is the code which I'm trying to execute: exports.invoke = async function(req, res) { const walletPath = path.join(process.cwd(), './wallet'); const…
Harry
  • 1
0
votes
1 answer

Nginx Config For React and Node App Proxying to Wrong Path

I've setup a server with an Nginx config for a React frontend and Node backend. The Node app serves as an API for the react app. The node routes for /api/... are getting passed to the following path: /client/public/api/... This results in a 404. I…
jFasaJr
  • 111
  • 1
  • 6
0
votes
0 answers

Nginx non-'base' location into base proxy_pass, location not being inherited in frontend

I can't figure out how to word the question properly, but I'm pretty sure someone has encountered this problem already and I just can't figure out what keywords I should be looking for. So here's the breakdown. I have this location block in my…
0
votes
1 answer

How to update yum repositories to fetch newer versions of nodejs and related ones in CentOS 7?

I'd like to update certain packages. The latest versions are not presented. $ sudo yum list nodejs Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos1.hti.pl * epel: ftp.uni-kl.de * extras:…
Kirby
  • 1,009
  • 1
  • 10
  • 16
0
votes
1 answer

Docker race condition leading to curl error "transfer closed with 1 bytes remaining to read"

It is hard to fully describe our problem. However, I will try my best to provide full information. I spent many hours and still stuck. Hope that anyone here can help me. Currently, our container randomly hangs on response to network request. I have…
Sang
  • 101
  • 4
0
votes
1 answer

Nginx with node app with existing application

I am completely new to nginx and I am trying to set something up so that it is possible to navigate from an existing application on a remote server to a node application. The node app will be on the same server. For now, everything is local on my…
Metaman
  • 103
  • 2
-1
votes
1 answer

What does Node.JS support on a hosting plan mean?

As I was browsing various hosting plans, I noticed that some offer Node.JS support. If a host does not offer Node.JS; Can I log in, download, and install Node.JS support myself if the host supports SSH? I am confused on what Node.JS support means in…
-1
votes
1 answer

Unable to install nginx on Amazon Lightsail NodeJs machine

I am getting the following error while trying to install nginx. I have hosted a reactjs app on the machine and intend to setup reverse proxy with nginx Reading package lists... Done Building dependency tree Reading state information... Done nginx is…
SID
  • 13
  • 2
-1
votes
1 answer

Digital Ocean Droplet running Docker -> Jenkins -> Docker -> Jest is shutting down

I have a droplet running docker that runs jenkins. I have a jenkins pipeline that runs docker and a node test with jest. It seems like when it gets to the test stage it collapses the whole server. The server shuts down and i have to run…
ThomasReggi
  • 621
  • 2
  • 10
  • 25