470,894 questions
0
votes
0
answers
19
views
How to enable echo in Terminal.readLine (Effect)?
I want to make a minimal interactive console utility using Effect.
Started from an empty Effect app:
npx create-effect-app@latest
... (interactive part)
cd effect-app
npm install
Then I copy-pasted ...
-3
votes
0
answers
57
views
How to make "npm audit fix" fix vulnerabilities if it does nothing even there is "fix available via `npm audit fix`" message?
Executing the npm audit. It will be enough to show just last three issues - all of them has "fix available via `npm audit fix" message:
tar <6.2.1
Severity: moderate
Denial of service ...
0
votes
1
answer
26
views
Can a single node-redis client instance handle concurrent requests?
Suppose I have code similar to this:
const client = await createClient()
.on("error", (err) => console.log("Redis Client Error", err))
.connect();
const promise1 = client....
-4
votes
0
answers
21
views
Is there any way to detect trackers in a website in NodeJS? [closed]
I'm making a search engine for my personal use, and something that I want to do is, using a URL of a website, to see if there are any trackers in that website. Is there any simpler/faster way to see ...
0
votes
0
answers
18
views
Calling Claude CLI as a child process yields no output
I am trying to use the automation features built into the Claude CLI. Namely, if you pass in the --print flag argument, with a prompt (and --allowed-tools to make it actually do something) it will ...
-1
votes
0
answers
38
views
How to disable the "body-parser" globally in NestJS?
If I have understood correctly, the NestJS with default Express engine uses and enables the "body-parser" as default. If so, I am not fine with it because most requests has GET-type, and for ...
1
vote
0
answers
37
views
Fetch event does not fired in service-worker when cors request was sent in webpage
Here is my code. Both index.html and service-worker.js are served on http://localhost:8080.
index.html
<!doctype html>
<html lang="zh">
<head>
<script>
if ...
Advice
1
vote
4
replies
47
views
Why does my asynchronous CPU-heavy function block the Node.js event loop even when wrapped in a Promise?
I have a CPU-heavy calculation function in my Node.js backend, and I expected it to run asynchronously because I wrapped it inside a Promise. However, when I call this function, the entire server ...
1
vote
1
answer
39
views
Mikro-ORM migrations work locally but no tables in Docker container database
I have a NestJS app using Mikro-ORM and PostgreSQL.
I’m new to Dockerizing database migrations and Mikro-ORM in NestJS.
Locally, when I run:
npx mikro-orm migration:create
npx mikro-orm migration:up
...
0
votes
0
answers
48
views
Deploying Node.js application to IIS(CORS error though configured CORS configuration in Node.js server page) [duplicate]
I tried to deploy a Node.js application to IIS. I tried to send multipart form data from a frontend API as a post request. Though I have enabled CORS configuration in Node.js server.js page, CORS ...
0
votes
1
answer
60
views
How to make npm global packages use absolute symlinks instead of relative symlinks?
I'm using npm with a custom global prefix:
npm config set prefix ~/.local
When I install global packages, e.g.:
npm install -g yo pagedjs-cli asciidoctor-pdf yo generator-code
npm creates relative ...
0
votes
1
answer
48
views
Cannot find module 'griddb-node' after installing GridDB Node.js client [closed]
I installed GridDB 5.7 and created a Node.js project:
mkdir griddb-node-test
cd griddb-node-test
npm init -y
npm install griddb-node
My code (test.js):
const griddb = require('griddb-node');
console....
-1
votes
0
answers
44
views
Error after updating Express from version 4 to version 5 [closed]
I have an service built using Node.js and Express. I was able to start the service when using Express version 4.19.2, but after updating to version 5.1.0, I can no longer start it.
The error I’m ...
0
votes
0
answers
63
views
Firebase Cloud Functions won't allow Firebase Admin SDK to find collection, Error 5 NOT_FOUND [closed]
signupWithAccessCode.js:
const functions = require("firebase-functions/v2");
const {onRequest, onCall, HttpsError} = require("firebase-functions/https");
const admin = require(&...
2
votes
1
answer
114
views
how to build C++ such that it can be called from JS with arguments?
I'm doing a little project to learn C++, and web stuff. I come from Python, so I don't really understand this source code needing to be built first and then turned into an .exe thing, quite yet, so ...
0
votes
0
answers
48
views
GridDB Node.js StoreFactory.createStore / getStore is not a function
I installed GridDB 5.7 and am trying to use the Node.js client to create a store object. My code is:
Input
const griddb = require('griddb-node');
const factory = griddb.StoreFactory.createStore({
...
1
vote
0
answers
30
views
Node.js back-pressure documentation - what's the relevance of their example?
The Node.js Backpressure in Streams documentation begins with an example that compares the use of the zip(1) utility with a Node.js script that uses a simple stream to achieve the same result.
A good ...
Best practices
1
vote
3
replies
41
views
Athena health api documents
I’m trying to build an application that can download patient documents from Athenahealth, but I can’t figure out whether this is actually supported. The official API documentation is extremely limited ...
0
votes
1
answer
39
views
NextAuth module augmentation not working in Turborepo monorepo (Property 'id' does not exist on type 'Session.user')
I’m using a Turborepo monorepo with a Next.js 15 App Router project (apps/web) and a shared packages/types package that contains my NextAuth module augmentation.
However, TypeScript still gives this ...
1
vote
1
answer
112
views
Prisma CLI Error: "Missing required environment variable: DATABASE_URL" in NestJS Project (Even Though .env Is Set) [closed]
I'm trying to use Prisma in my NestJS project. Prisma initializes correctly, but whenever I run any Prisma CLI command (e.g., npx prisma, npx prisma migrate dev, etc.), I get this error:
Failed to ...
Best practices
1
vote
1
replies
96
views
What is the best practice to stream video in a website?
I was watching a tutorial on cloning YouTube, and in it, they used Mux for the streaming API. Generally, when you need to stream video on a website, do you need to use a third-party API here, or is ...
-5
votes
1
answer
59
views
Node doesn't install bitgo types
I'm creating an address generation program, and I'm using Node.js
I decided to add bitgo to the infra but installing types doesn't work
Here's the error I get:
└─$ npm install bitgo
npm error code ...
Best practices
1
vote
3
replies
65
views
How can I optimize my nodejs backend code for live data emiting for dashboard in UI
So I am working on a MEAN stack project where in node I will emit the data to UI and in frontend I had some widgets ( as charts like gauge , line , pie and table ) where user can add dynamically ...
1
vote
0
answers
33
views
"permission denied" error in Cloud Function that imports gmail
I'm stuck getting a "permission denied" error when using the gmail googleapi in a firebase cloud function to "import" syntetic emails to a workspace email box.
I've followed this ...
0
votes
0
answers
25
views
opencv.js in node throws abort(ReferenceError: document is not defined)
I want to use opencv in node. Found @techstark/opencv-js and looks promising, but I cannot run even a simple example.
I've installed the examples from https://github.com/TechStark/opencv-js-examples. ...