469,920 questions
Best practices
0
votes
7
replies
142
views
Create a variable to store "Hello World" and print it to the console
// Problem #1
// Problem Statement:
// Create a variable to store "Hello World" and print it to the console.
// Requirements:
// Store a constant message in a variable and display it as ...
2
votes
0
answers
51
views
Why do npx commands fail silently (Exit Code -4048) while npm run works perfectly?
I'm running into a strange issue in my enterprise environment where all npx playwright commands are instantly and silently crashing. If I run npx playwright test (or --version, install, etc.), the ...
Best practices
0
votes
4
replies
53
views
How should I design scalable radius-based location search for a C2C marketplace using MongoDB?
I'm developing a C2C (Consumer-to-Consumer) marketplace where users can discover products and services available near their location . so i try to implement the radius-based location filtering.
what ...
-8
votes
0
answers
74
views
How to solve Adobe Aria's npm error code 128? [duplicate]
I have been trying to get Adobe's aria to run for my new portfolio page.
I keep getting this same error, can't find a different way to set up their latest release anywhere apart from their documents.
*...
-2
votes
0
answers
95
views
Almostnode implementation cannot resolve dynamic file paths when rendering in iframe
I am currently working on a project where I want to run GitHub-hosted projects directly in the browser. I was previously exploring nodepod and came across almostnode, so I wanted to give it a try.
I ...
0
votes
0
answers
62
views
How do I monitor multiple WebSocket feeds concurrently in Node.js without blocking [closed]
I'm building a Node.js trading bot that needs to monitor multiple WebSocket feeds simultaneously (BTC, ETH, SOL, and XRP).
What's the recommended approach for handling multiple real-time streams ...
0
votes
0
answers
40
views
Docusaurus build failing with Css Minimizer plugin error after upgrading to Node 20
I recently upgraded my Docusaurus documentation website (Algo) to v3.5.2 and shifted my local development environment over to Node.js 20. However, every time I attempt to run a production build using ...
Best practices
0
votes
2
replies
131
views
Passing mysql2 createPool to different functions as an argument
Just wanted to know if there are any issues with passing the mysql2.createPool(options) to another function as an argument instead of ending and reopening the pool multiple times
Desired Result:
I ...
-1
votes
1
answer
79
views
Getting the Preview URL of a Dynamically Created Docker Container [closed]
I am building a vibe-coding platform similar to Bolt and Lovable. My workflow is:
Generate code using AI.
Write the generated files to a temporary directory.
Build a Docker image from that ...
Tooling
1
vote
1
replies
74
views
How should I divide development tasks between Replit Agent and ChatGPT for a Node.js telephony application?
I am developing a Node.js-based telephony and call-intelligence prototype. I plan to use Replit Agent for repository-level implementation and ChatGPT for architecture review, debugging, test design, ...
1
vote
1
answer
86
views
How to handle foreign key constraint error when deleting a user in Prisma (one-to-many relation)?
I'm building an Express + Prisma API for a blog system.
I have a User model and a Post model with a one-to-many relationship (one user can have many posts).
When I try to delete a user using:
await ...
Advice
0
votes
1
replies
261
views
Problem installing Playwright to my project
When I install Playwright the installation reaches 100% but never proceeds
$ npx playwright install
Removing unused browser at C:\Users\public\AppData\Local\ms-playwright\chromium-1208
Downloading ...
Advice
2
votes
5
replies
96
views
Why doesn't it use all available RAM?
I understand that Node.js applications are often scaled using multiple processes, containers, or servers.
However, I'm trying to understand the reasoning behind the default V8 heap limits.
For example,...
-2
votes
1
answer
82
views
Checking menu items fails in Electron
The code example below for a main.js Electron file successfully changes the item label of the one item in menu Menu upon item click, but not its checked status when run in Electron Fiddle. As can be ...
Best practices
1
vote
2
replies
53
views
Should I keep separate DAO methods for entity listing and lookup search, or merge them with flags in TypeORM?
I working as a backend developer in Node.js with TypeScript and TypeORM, and I'm trying to decide on the best repository/DAO design.
I have a TPA entity and currently two separate DAO methods:
1. ...