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
0 answers

Apache reverse proxy to Node server bypass

I have an Apache server that is working as a reverse proxy to a node server. I'm trying to bypass the proxy for a static file i.e. ads.txt I have the following conf: Order Deny,Allow Allow from all
0
votes
0 answers

Nginx 413 - Client intended to send too large body - Node app

I am runing a node app on nginx under Ubuntu and I am having problems uploading a 200M json file. On my local I use nginx on a Mac and I am not having this limit issue. I have set the nginx.conf http client max size to 0 and 1000M but I am still…
Álvaro
  • 117
  • 1
  • 2
  • 8
0
votes
1 answer

NGINX reverse proxy doesn't work with swagger-ui-express

I am using NGINX to proxy_pass all requests with prefix /auth/ to a nodejs api server at localhost:3000. I have this single config file /etc/nginx/sites-enabled/default3.conf: server { location /auth/ { rewrite /auth/(.+) /$1…
xceeded
  • 1
  • 1
  • 3
0
votes
1 answer

Blocked loading mixed active content

I am using react as my font end, and nodejs as backend which is running on localhost:3016 and I used nginx as reverse proxy and load balancer; this my nginx conf file for the site upstream load_balance{ #least_conn; #ip_hash; server …
0
votes
0 answers

How to pass the chromedriver path to nodejs selenium-webdriver in Docker

Here is my docker file. FROM node:17.2.0 USER root WORKDIR /LT RUN apt-get update RUN apt-get install git --yes COPY /LT . COPY /LT/test . COPY ["/LT/package.json", "."] # Install Google Chrome RUN apt-get install wget RUN wget…
Jay
  • 103
  • 4
0
votes
1 answer

docker - nodejs - selenium-webdriver - Error: Server terminated early with status 127

I am a novice in a docker container. I am trying to create a docker file that has npm, node js, chromedriver and selenium-chromedriver and run my javascript file. In my local , I run the script in the headless chrome browser. Here is my docker…
Jay
  • 103
  • 4
0
votes
2 answers

High availability with round robin - rsync and DB replication or a cluster?

I have one machine (centos7) with Apache, PHP, MariaDB and Nginx, Nodejs, MongoDB installed and being used by many different domains. I'd like to create a working mirror and can't decide between 2 options: rsync static websites, server and config…
knm
  • 5
  • 2
0
votes
1 answer

How to deploy a server side rendering (SSR) react application (bundled by webpack) on windows server 2016 / IIS

Just a heads up: This is the first time I try to deploy a react application on a custom built Windows server, but I’ve managed to do it successfully on Heroku and Linux (PM2), so I know that the application architecture is suppose to work…
0
votes
1 answer

Nginx rewrite with proxypass

I have an Nginx running in the front of a node js server (next.js). I'm trying to write my Nginx config in order to achieve this behavior, I want to add the hostname as the first part in the path before proxy_pass to node js. for example, the client…
0
votes
0 answers

Access Node-TS app running in Windows server 2019 from any computer

I've a Node-TS based Opensource ERP Gauzy deployed and running in a Windows server 2019 and I want to allow access and connect a domain to this app so that it can be accessed from anywhere by any number of users. Reason for windows server is this…
0
votes
0 answers

How could a request be dropped when sending a request to NodeJS?

I have an AWS ALB that load balances requests round-robin to four servers. Each server uses pm2 to round-robin those requests to six CPUs. NodeJS processes (react NextJS) are running on each of those six CPUs, served by Express.js. One of the first…
tunesmith
  • 101
  • 1
0
votes
1 answer

Passenger Apache - Forbidden You don't have permission to access this resource

I'm stuck with Apache with Passenger configuration. I spent a few days looking for a solution. I follow this instructions. I'm getting this message in the browser: Forbidden You don't have permission to access this resource. httpd.conf # Use…
neuroine
  • 1
  • 4
0
votes
0 answers

Installing Node on a server with no internet, with ansible/nvm?

I have a little puzzle. I'm trying to get Ansible to deploy NodeJS to a server(s) that do not have access to download Node from the official website. Really, no access to the web (And enabling isn't an option). But I am able to send stuff to the…
Charlie
  • 103
  • 3
0
votes
0 answers

Google App Engine Start program Failed

I have a very basic NodeJS application hosted on Google App Engine that executes an async function on 15 second intervals. The deployment is successful and the app starts and runs fine, but stops after about 30 minutes with the following error logs.…
0
votes
0 answers

How do I get a graceful shutdown of Node.js running on Apache/CentOS/Plesk?

Hopefully this question has an answer that's generic to Apache and Node.js, and not specific to Plesk ('cause I know how you feel about Plesk-specific questions!). I recently decided to add some text message notifications to a Node.js server app,…
kshetline
  • 109
  • 1
  • 7