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
-1
votes
1 answer

Node.js on cPanel question

Is it correct/safe to do the steps mentioned here: https://gist.github.com/754303 on the IP that is only used for **ns2.**mydomain.com? Please advise.
emurad
  • 111
  • 3
-1
votes
0 answers

Can't go to routes using nginx and Express.JS

So I have express.js set up behind nginx and when I go to website.com/users, I get a 404. But when I go to website.com, the page loads fine. This appears to be all other routes too, I can't get to website.com/public/css either. Here's my nginx…
-1
votes
0 answers

Nginx Reverse Proxy working on wrong server_name (Sub domain ignored)

I have a created new Nginx server which I am using for reverse proxy for my 2 NodeJS apps. First app I need to run on example.com Second app I need to run on endpoint.example.com I created the file endpoint.example.com in sites-available as…
Aayush
  • 97
  • 4
-1
votes
1 answer

Nginx yielding 499 status due to upstream connection reset

Have read other posts; they do not yield much light. Situation: Kubernetes cluster with ingress points to Several nginx containers that proxy-pass to a Node application on a specific URI via location /app/ What we see: After days of working…
peteisace
  • 99
  • 2
-1
votes
2 answers

Unable to access an express http server from public ip after port forwarding and UPNP

So I have a very simple express http server that returns simple html hosted on 127.0.0.1 and 6550 port that works perfectly in localhost. I will be sharing the code at the end of this post but I don't think it says much. I want to reach this over my…
isa türk
  • 99
  • 1
-1
votes
1 answer

~90% error rate with Stripe webhooks, unpredictable response. Server issue?

I'm setting up Stripe webhooks for the first time. I've made hundreds of test requests and I've had an error rate of around 90%. It's unpredictable as to why the failures occur. The failure responses on the Stripe dashboard are either: Timed out…
Joseph
  • 1
-1
votes
1 answer

Nginx reverse proxy not working

I know this is a very common problem, but I can't seem to find the solution to it, and I'm new to Node JS and Nginx. I'm trying to run my Node JS app on port 80 of my site at example.com using a nginx reverse proxy, where my app is running on port…
-1
votes
1 answer

Cpanel NodeJS app displaying source code

I have set up nodeJS app on cpanel using cpanel nodeJS selector. Apps root directory is /home/userName/public_html/server. The app is working fine. Problem is if I send get request to example.com/server/app.js it is displaying the source code of…
-2
votes
1 answer

App engine website coming soon

App engine only works in US central. I accessed the site there, but when moved to the west coast, my website displays a "coming soon" page instead of the website I uploaded.
Ripper
  • 1
-2
votes
1 answer

CentOS, install nodejs latest

i have problem with installation of latest version of node on CentOS 7 i run yum remove nodesource-release* nodejs yum clean all command rpm -qa 'node|npm' shows nothing, so i run this command: curl --silent --location…
Viszman
  • 97
  • 2
-2
votes
1 answer

List of most popular server side web hosting languages?

I am looking for some online resources providing statistics, or at least ranking, of server-side installations based on the language (and maybe version and environment). We are trying to choose the appropriate language for an upcoming…
-2
votes
1 answer

how to migrate wordpress blog website to a node based application?

I had an already existing blog written in wordpress, which uses db for storing the posts. Now, I am removing the wordpress and writing my node application that just serves the page requested by the user. The problem I am facing is how do I convert…
Bali Vinayak
  • 101
  • 1
-2
votes
1 answer

Loading files from different partitions

I've been working on a chat engine with file streaming builded with socket.io and nodejs. Everything is working well, messages, notifications, chat rooms and even the file streaming but let's say that we have a server with only 1TB (250gb HDDx4) and…
-2
votes
1 answer

Site rendering differently with and without "www"

I recently developed a site, and was surprised to find that the section labeled "Transparent Pricing" shows different prices when I access the site with or without the "www." nmbs.io displays the correct pricing. While www.nmbs.io shows the…
David K.
  • 101
  • 3
-2
votes
1 answer

Staging architecture on AWS

We are using AWS (EC2-classic) and I will migrate our servers to AWS VPC, we will use AuroraDB, too. Staging ENV has 8servers (Linux Ubuntu 14.04), and on these servers are running RoR & node.js applications. I was thinking to consolidate these…
1 2 3
68
69