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
325
questions
0
votes
0
answers
12
views
Run Adonis (Node.js) with pm2
I have just deployed my first basic Adonis app to the production server.
When I serve it with node ace serve it works fine, I can access it from browser.
I created a ecosystem.config.cjs file (since I ...
0
votes
0
answers
19
views
Content not from webpack is served from '/app' directory (Docker / Webpack)
I'm using Webpack configuration with docker.
Everything working well as development step. However this is not working for my preproduction and production step. The difference between these steps is ...
1
vote
0
answers
19
views
Unable to Resolve Dependencies from EntityRepository in TypeOrmModule. But EntityRepository doesn't exists
I am working on a NestJS project that uses TypeORM. Currently implementing a data feed in the 'command handler' pattern so each user has a customized output from the same endpoint.
Error Message
- [...
1
vote
0
answers
38
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/@...