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
91
questions
1
vote
0
answers
35
views
Why the Protobuff is slower than JSON.stringify() in NodeJS?
In our system, we are trying to reduce the data transfer duration between two applications through RabbitMQ. To do so, we are doing some tests with Protobuff and Flatbuffer. According to our test, ...
0
votes
0
answers
8
views
How to Properly Create the Data Architecture for a PERN Stack Application?
I'm building a web application using the PERN stack, and I'm looking for best practices on how to design the data architecture.
I just did a basic pernTODO in order to practice my postgressSQL skill a ...
-2
votes
0
answers
22
views
Why res.clearCookie() is not working after deploying to vercel?
First of all, everything works fine when running on localhost.
However, after deploying the app to Vercel when the user tries to log out it should clear cookies with res.clearCookie() but it doesn't ...
0
votes
0
answers
8
views
Natural date parser for chat bot
I need a date parser in Node.js to parse or find dates from the user entered queries.
To design a chat bot - in chatbot user will be asking for a data for a particular date,
so the queries can be in ...
0
votes
0
answers
16
views
Aggregate vs Populate methods when to use one in nodejs Mongose
I am creating asset managment tool for warehouse and I have Warehouse , Asset, Category models. I want to get the overall stats of each warehouse like , total assets and how many of them is active or ...
0
votes
0
answers
24
views
Unable to update Node.js in pre-built Docker container
I have a project that's inside a pre-built docker container which uses Node v14. I have been let know that the container was pulled like this a long time ago: docker pull node:20-alpine.. but not much ...
0
votes
1
answer
23
views
Ways to create a login using nodejs
So i am learning nodejs i am trying to create a login
here what I made so far it works
it connects to mongodb and check if the field if same then changing the allow variable to true
any ways to create ...
0
votes
3
answers
30
views
How can I store the response of my axios get request as json in node.js?
I'm trying to send a request to an api using axios and store the json response in a variable. When I output the response to the console, it shows it, but when setting a variable equal to it and ...
-2
votes
0
answers
24
views
TypeError: Cannot read properties of undefined (reading 'paramType') [closed]
I was upgrading my nodejs api application
from
node: v16.17.0
npm: v8.15.0
to
node: v20.15.1
npm: v10.7.0
start the server by ---> npm run serve
I was facing the issue on PlatformHandlerMetadata.js
...
0
votes
0
answers
28
views
How to configure NodeJS/NestJS app for SSO with an Azure Enterprise Application [closed]
I want to integrate Azure Enterprise Application SSO with my NodeJS application. What I've done so far is create an enterprise app in my Entra ID/Active directory and added urls. But I'm confused here....
0
votes
0
answers
16
views
NoSuchElementError: no such element: Unable to locate element: {"method":"xpath","selector":"//select[@id='InputPrefix']"}
when i created seperate stepdefinition classes like Given, When,Then the automation script usin findElement etc.. is not reading in when and then step.js but its reading in given.js file what mistake ...
-1
votes
0
answers
16
views
NPM EACCES Error when installing LoopBack
npm error code EACCES
npm error syscall mkdir
npm error path /usr/local/lib/node_modules/@loopback
npm error errno -13
npm error Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@...
0
votes
0
answers
30
views
how to test localhost API from docker container
I am a little new to docker and I trying to figure out how to use docker compose. So far I have only created a test API called "http://localhost:3000/test" which would just return a "...
1
vote
1
answer
22
views
Get Redis keys that match a pattern in v4
I was using Redis version 3 in my Node.js app that published a message. To publish this message, I was able to fetch specific keys that matched a value. Now I have updated to version 4, and it looks ...
0
votes
0
answers
15
views
Typescript: Circular Definition and Cannot Find Module Errors During Build
I cloned a project from GitHub and encountered some issues while trying to build it. I've already installed all the necessary dependencies using npm install, and I'm running MongoDB through the mongo ...