Questions tagged [node.js]
Node.js is an event-based, non-blocking, asynchronous I/O runtime that uses Google's V8 JavaScript engine and libuv library. It is used for developing applications that make heavy use of the ability to run JavaScript both on the client as well as on the server side and therefore benefit from the re-usability of code and the lack of context switching.
node.js
470,103 questions
-3
votes
0
answers
35
views
How to use async function in the router?
I have a simple code thet works fine:
...
0
votes
0
answers
21
views
I’m experiencing an issue with WebRTC audio on Android 14+ that works correctly on Android 13
I’m experiencing an issue with WebRTC audio on Android 14+ that works correctly on Android 13.
Behavior
Android 14 → Android 13: Android 13 hears audio correctly
Android 13 → Android 14: Android 14 ...
0
votes
1
answer
33
views
How to fix Error: Cannot find module 'node:path' / nvm is not compatible with the npm config "prefix" option: currently set to ""
I'm using node with nvm on Debian13. When opening a new console window, I get this error displayed:
...
0
votes
1
answer
58
views
I'm experiencing slow download times for videos from Telegram using GramJS with the Downloadmedia method
I'm experiencing slow download times for videos from Telegram using GramJS with the Downloadmedia method. Is there a way to speed up the downloads?
Is there a way to speed up the download, an optimal ...
0
votes
1
answer
43
views
node.js yargs module unable to call the handler function
I am trying to use yargs however, when I run I could not seem to find the handler function being executed as intended.
I have a folder and inside this folder I have only one file called app.js (apart ...
1
vote
0
answers
76
views
PowerShell cannot find pnpm (ObjectNotFound) while CMD works fine; [closed]
I am encountering a strange environment issue where pnpm is accessible and works perfectly in Windows CMD, but PowerShell (PS) fails to recognize it as a command.
...
3
votes
0
answers
18
views
Playwright / Stagehand: setInputFiles does not upload file inside iframe even though input exists
I’m currently working on an automated test using Stagehand, however, when trying to upload files, I’m not able to do it reliably.
After filling out a form, the test successfully uploads a file using ...
0
votes
1
answer
40
views
Does node js child process write store the data internally
If i have for example
this._process.stdin.write(protocolReq);
Where process is
...
1
vote
2
answers
60
views
Direct Upload to S3 from Angular failing with 400 response
I am attempting to upload a file directly to S3 using a put_object presigned URL. When I attempt to upload using a PUT command ...
1
vote
0
answers
25
views
How we can resolve the ssl self-signed Certificate issue on Vs code for a CLI on shopify app
I am unable to run npm init shopifyapp@latest in VS Code - it shows a "SSL self-signed certificate" error.
I have installed Kaspersky on my laptop as ...
Advice
0
votes
2
replies
78
views
What is a Node.js wrapper?
I'm trying to talk to IGDB's API to get some video game data. I'm super new to SWE. What is a Node.js wrapper? What is Node.js? And how is Node.js different from just "JavaScript"? How does ...
-5
votes
1
answer
82
views
Request body of Postman request to Express/Node API appearing blank server side
I have a request going from Postman to a Express/Node server locally.
GET requests to the same endpoint are working as expected but when I ...
Advice
1
vote
0
replies
42
views
Sequelize: Difference between "constraints: true" vs "constraints: false" with manual FK creation to handle Circular Dependencies
I'm working with Sequelize v6, and facing a circular dependency between two models: User and Profile. To solve this, I am ...
-4
votes
0
answers
50
views
why is nvm install 14 not working in gitbash? [closed]
I cloned a github repository and i am trying to install nvm 14 and i am getting the same error over and over. I tried reinstalling npm and it's still not working.
...
0
votes
0
answers
23
views
How do you get node inspector to pick up source files and break on breakpoints?
I am using WSL. I tried running this command:
node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand myTest
Then I open Google Chrome and go to ...
1
vote
0
answers
44
views
Firebase deployment fails with "Changing from an HTTPS function to a background triggered function is not allowed" on a new, non-HTTPS function
I am completely blocked trying to deploy a new Cloud Function to my Firebase project (work-scheduler-8525d). I am trying to deploy a simple, 2nd Gen background-...
-4
votes
0
answers
55
views
Error: querySrv ECONNREFUSED _mongodb._tcp.cluster0.tigfrse.mongodb.net [duplicate]
This is my code to connect with MongoDB Atlas
...
-3
votes
0
answers
35
views
0
votes
0
answers
69
views
What is actual cause of "404 Not Found" error when run "npm publish" with ".npmrc" file and valid token and when publishing without ".npmrc" works?
In this question, I have asked how to make npm not prompt for the signing in when executing "npm publish" without .npmrc, but the publishing without promt of signing in does not work even ...
0
votes
1
answer
40
views
React Native Android app not connecting to Metro Bundler
I'm trying to run my React Native app on Android using installDevDebug, and then starting Metro with:
npx react-native-start
...
0
votes
1
answer
42
views
How to correctly push jobs to BullMQ from Laravel?
I am trying to push a job from a Laravel (PHP) application to a BullMQ queue running on Node.js. Since I couldn't find a stable PHP library for BullMQ, I am using a manual ...
0
votes
0
answers
37
views
Stream text from node socket to freeswitch using azure TTS
I am trying to create a socket which acts like a AI bot and will stream preset text by converting it usin azure TTS engine back to freeswitch and hence back to user who is calling. I am able to access ...
0
votes
1
answer
76
views
3 files keep automatically opening in VScode
I am writing an application in NodeJS and during debugging these three files keep opening up in VSCode. Whenever I close them they will come back after a couple of seconds:
...
0
votes
0
answers
37
views
PrismaClient throws "Invalid invocation" for findUnique/create
I am building a Node.js/Express backend using TypeScript, Prisma, and PostgreSQL (Supabase) and encountering a weird issue where this.prismaClient.user.findUnique ...
-3
votes
0
answers
85
views
PDF downloads html_to_pdf [closed]
I just moved to EC2 and PDF downloads no longer work. Here's my code.
...
-3
votes
0
answers
52
views
React frontend works publicly on IIS but Node.js backend API not loading (works locally) [closed]
I have deployed a React frontend and Node.js backend on IIS (Windows Server).
Setup
Frontend: React
Backend: Node.js (Express)
Server: IIS
Frontend is accessible publicly and loads correctly
...
0
votes
0
answers
31
views
How to make npm not prompt for the signing in when executing "npm publish" without .npmrc?
I have set the npm granular token via CLI by the following command:
npm config set //registry.npmjs.org/:_authToken=npm_ThisValueIsExample
but npm still prompts me ...
-1
votes
0
answers
55
views
Correct workflow to detect refunded or voided in app purchases for IOS [closed]
For iOS in-app purchases of consumable products, what is the correct workflow for my backend Node.js server to implement, to detect refunded or voided purchases so that it can remove the privileges ...
0
votes
1
answer
45
views
LoopBack 4 CLI 7.0.10 completely broken
I’m trying to create a new LoopBack 4 application using the latest CLI:
...
-1
votes
0
answers
39
views
Intermittent 504 Gateway Timeout on Google Cloud Run with no container logs for failed requests (MERN Stack application with next.js frontend)
I’m encountering a strange issue with Google Cloud Run (Node.js(Backend: Express.js)) where some requests return 504 Gateway Timeout (~300s) but never reach the container, as there are no application ...
-3
votes
1
answer
82
views
Running into WebJS.getChatModel issue: Cannot read properties of undefined (reading 'update') [closed]
I'm running a whatsapp-webjs script and trying to retrieve groupchats. Here is the code:
...
Best practices
0
votes
0
replies
20
views
Next.js multi-domain (multi-tenant) site: resolve business in middleware vs in layout/server component?
I have a Next.js customer-facing website that can be reached by many different domains. Each domain represents a different business, and depending on the domain we need to load that business’s content ...
-1
votes
0
answers
51
views
Moltbot (v2026.1.27-beta.1) generating incorrect/expired timestamps (atMs) for Cron tasks despite correct system time [closed]
I am using Moltbot v2026.1.27-beta.1 on an Aliyun ECS instance (CentOS/Linux). My system time is correctly synchronized with NTP, but I am encountering a critical bug where the bot generates "...
0
votes
1
answer
73
views
Building Angular app with 'npm run build' gives Node.js version error, but 'ng build' works
When I try to run npm run build , Angular complains about the Node version installed. The version it's complaining about is not installed at all, and definitely not ...
Best practices
0
votes
2
replies
41
views
Reduce 'Prisma 7' final bundle size in Docker
In my NodeJS project, we have integrated Prisma(v7.3.0) ORM for MySQL database task(previously sequelize). After all the setup is done, we observed prisma occupies very huge size in Docker image ...
0
votes
1
answer
89
views
Does worker_threads MessagePort transfer fail silently with detached ArrayBuffers in certain V8 optimization scenarios? [closed]
I'm building a high-performance image processing pipeline using Node.js worker_threads. I'm transferring large ArrayBuffers between workers using postMessage with the transfer list.
In production (...
0
votes
1
answer
52
views
How to add custom.d.ts interfaces of npm module in a library and make it available for other projects
We have a monorepo project which includes a few internal npm modules in TypeScript with auxiliary classes and utilities. We use those modules in several of our projects still in JavaScript.
One of the ...
0
votes
0
answers
19
views
Best practices for handling asynchronous Qiskit Runtime jobs in a Node.js/React architecture? [closed]
I am building a full-stack educational tool for a Hackathon to visualize quantum circuit results. My tech stack involves a React frontend, a Node.js backend, and Qiskit (Python) for the quantum ...
Advice
0
votes
1
replies
20
views
How to test Prisma schema changes/migrations without breaking the shared development database?
I’m part of a dev team using a shared PostgreSQL instance for our development environment. Recently, I had to remove a field from the DB for a specific feature. I ran the migration, but the task ended ...
0
votes
0
answers
71
views
Next JS 16 killed PM2 and all Service in VPS Ubuntu 20
I’m deploying a Next.js application on an Ubuntu 20.04 VPS using a fairly standard setup, but I’m running into serious stability issues that I can’t fully explain.
Environment
Ubuntu 20.04
Node.js ...
0
votes
0
answers
24
views
AliExpress Dropshipping API - Persistent "IncompleteSignature" Error on Token Exchange (Node.js/TypeScript)
I'm integrating the AliExpress Dropshipping API into a NestJS application and consistently getting an IncompleteSignature error when trying to exchange an ...
0
votes
1
answer
50
views
LangChain.js createHistoryAwareRetriever with Ollama embeddings throws invalid input type error
What I am Working on
I’m building a conversational RAG pipeline using LangChain JS with Ollama (local models).
If I use a normal retriever created from a vector store, everything works fine and ...
-1
votes
0
answers
24
views
Appsync Graphql Subscription problem with IAM Authentication
I have a React App that receives a temporary credential from a lambda to create a connection to the Appsync via IAM Credential with those credentials and subscribe to a specific mutation.
The ...
-1
votes
1
answer
99
views
MongoDB Atlas connection fails with querySrv ECONNREFUSED from Node.js
I am trying to connect a Node.js backend to MongoDB Atlas using the official MongoDB driver, but the connection always fails with a DNS querySrv ECONNREFUSED error.
...
0
votes
1
answer
63
views
Deploying Vite + React App on Plesk: "Application Startup File" missing or 404 on refresh
I am trying to deploy a React 19 application built with Vite on a server managed via Plesk. My project is a standard Vite React setup. I use react-router-dom (v7) ...
-1
votes
1
answer
30
views
Serverless connector use in AppEngine seemingly blocked as unsupported by Nodejs20
I'm trying to deploy an AppEngine Standard service that will use a Serverless Connector to access our database. Deploying via app.yaml I get the following error:
...
-7
votes
0
answers
94
views
What is the point of worker thread if Node.js is non-blocking? [duplicate]
On the Node.js documentation, it says that CPU intensive functions will block the event loop. But everything else I read about Node.js, like this, says that it is non-blocking and asynchronous. So I ...
-1
votes
0
answers
57
views
Uploading an image with Node.js and multer working with postman but not from frontend
I have an image upload using multer which works in postman but not from the frontend in react.
The route I am calling is like this which has some additional auth middleware:
...
1
vote
0
answers
42
views
My Word add-in can display taskpane.html but not MyPopup.html
I created a Word Add-In following the Microsoft tutorial. It works just fine. The starting page is taskpane.html located in the src/taskpane folder, per the tutorial code. I am trying to enhance it ...
-1
votes
1
answer
46
views
Node.js async/await not waiting inside loop when calling database queries [duplicate]
I’m working on a Node.js + Express API and running into an issue with async/await not behaving the way I expect inside a loop.
I have a route that fetches a list of ...