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

Need a little advice with apc, node.js, varnish, memcached, nginx

Just need a little advice here if anyone can help. Currently i have nginx running on a virtual private server, i am looking into installing node.js so i can use AjaxIM (http://ajaxim.com/) , and installing memcached, apc, and varnish. The main page…
mcbeav
  • 23
  • 8
0
votes
1 answer

Problems building nodejs on MacOS Snow Leopard

I am having trouble building nodejs on MacOS Snow Leopard. I think it might have something to do with my PATH variable not being set correctly for the developer tools location. For some reason, the Developer tools (gcc, g++, make etc) are…
mrwooster
  • 243
  • 3
  • 7
0
votes
1 answer

Super simple question about about command line '$ node example.js'

So I'm working on my first node.js 'Hello World' on a linux machine and I successfully got everything going by running $ node example.js I went to the browser and everything worked fine. Going back to the command line, I see the msg "Server…
Spencer Carnage
  • 165
  • 1
  • 1
  • 4
0
votes
4 answers

Installing OpenSSL (or Node.JS) on RHEL 5

I have to install Node.JS on a customer’s server which runs RedHat Enterprise Linux 5 (5.3, afaik). I’m an experienced Debian and Gentoo admin, but have not worked with RedHat systems for about 10 years. As far as I can see, there’s no official…
scy
  • 337
  • 3
  • 11
0
votes
1 answer

Apache Cannot See PM2 Node Process

I have Apache running on Ubuntu 20 and I keep getting this error in /var/logs/apache2/error.log: [proxy:error] [pid 7064] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:4000 (127.0.0.1) failed [proxy_http:error] [pid 7064]…
0
votes
0 answers

Whenever I tried to connect mongodb with my nodeproject in docker this error is showing

enter image description here Whenever I tried to connect my nodejs project with mongodb in docker. This started to show .
0
votes
0 answers

migrate pm2 services to new server

In order to support the most recent versions of NodeJS, we need to migrate our web servers from Amazon Linux 2 to Amazon Linux 2023. Making this move precludes us from doing the usual spin-up/down instances, and involves a full migration. Everything…
philolegein
  • 409
  • 4
  • 12
0
votes
0 answers

Can't run a blockchain application based on Node.js and Hyperledger Fabric 2.1

What I want to do (the short part of the post) I want run a project below successfuly The problem I installed a blockchain project from GitHub,which is built with Node.js and HyperlederFabric V2.1.This is its…
try it
  • 1
  • 2
0
votes
1 answer

How to setup Nginx and Varnish reverse proxy for Node.js?

My website on the Astro framework (Node.js SSR adapter) is deployed on 1 shared-cpu-1x@256MB fly.io instance in the Amsterdam region, which automatically handling gzip, TSL termination. Initial setup includes Varnish on port 80 -> Nginx 8080 ->…
Predaytor
  • 3
  • 2
0
votes
0 answers

Exposing ports on VPS

I'm running some services inside Docker and been having some issues with it: I have a NodeJS app (TLS stream communication) running on a custom port (let's say 2321). I exposed the port from my container and opened it on the firewall. On Cloudflare,…
Matic
  • 1
0
votes
0 answers

Intermittent errors fetching from raw.githubusercontent.com using mingw curl and nodejs on Windows, but not in PowerShell or Linux VM

This started happening a month or two ago. I have a node script which fetches from: https://raw.githubusercontent.com/glowbuzzer/gbr/master/package.json This has started failing about one in three times, but not with all methods (all running on the…
jugglingcats
  • 101
  • 2
0
votes
0 answers

Where do I store web server login credentials?

I am building a web server that will accept requests from mobile devices and route to 2 different SQL Server instances. For extra security, I want the mobile devices to have to log in twice - log in to the web server and then log in to SQL…
0
votes
0 answers

NodeJS https server returns http 0 and SSL error:14094412 ERR_SSL_SSLV3_ALERT_BAD_CERTIFICATE

I have a nodejs https server running on my Raspberry Pi. It responses to ajax requests. When open the webpage with a desktop/laptop or an iPhone (Safari), the ajax call returns the proper result with a http 200 return code. However, when I do the…
0
votes
1 answer

IIS URL rewrite troubleshooting

I'm using IIS to reverse proxy HTTP requests to a nodejs app running in the same machine. URL rewrite and ARR modules are installed and the proxy setting checked. The URL matching seems good: if I change the rule to redirect it works as expected.…
0
votes
0 answers

Error: Request aborted - can't send 20MB .mp3 files using Node.js + Express?

I'm making a game using a Node.js + Express app on Heroku. When the page loads, the soundtrack (music) is fetched in 5 20MB .mp3 files. But sometimes, the request hangs and then throws error 'Request aborted'. It seems to have something to do with…