Category "node.js"

Creating a dynamic RSS feed for a social network built with node.js

What would you recommend to use in order to embed a dynamic RSS feed for a social network website that was built with node.js. Any type of feed that can extract

Replacing JS require('...') with ESM imports

After updating node-fetch to v3, the following JavaScript error message appears when trying to launch my Electron app: Uncaught Exception: Error [ERR_REQUIRE_ES

Serverless offline is Unable to determine function entry point

I've been using serverless framework with azure functions. But when I try to run serverless offline, functions are not working and gives an error. It was runnin

AWS EC2 npm install suddenly very slow

In my ElasticBeanstalk environment, it always (for years) used to take ~5 mins for my Node.js app to be deployed and for the instance to change from status "Pen

How can I download image using GridFSBucket?

I tried everything I found on internet but nothing solved my problem. I really need help on this problem. I'm following the tutorial "How to upload/store images

NodeJS Cannot Connect to Postgres at Dockerized Environment

I am trying to run a NodeJS application on Docker. However I get that error: could not connect to postgres: Error: connect ECONNREFUSED When I debug the proble

no such element in Js webdriverio with Appium . and how to use promise here?

We run this coming promise error. We use the await function but not working correctly. **java script var wdio = require('webdriverio'); var allureReporter =

The google auth api doesn't refreshes the auth token using existing refresh token

It says "invalid grant". It usually happens after inactivity for a few days. I'm using the below code : Response : { error: 'invalid_grant', error_description:

Error: "Module build failed (from ./node_modules/happypack/loader.js):"

This is the theme I am using for a dashboard project (I am under serious timeline pressure). https://themeforest.net/item/enlite-prime-reactjs-fullstack-website

How to reset your App Engine standard docker image

I'm running a small app in a NodeJS14 App Engine standard environment. The app is currently only around 30MB in size, but the version in app engine is currently

Installing Node Application on a server. Apache npm pm2

I have installed a node js application (myapp.js) on a server with a particular IP. I have npm installed and started the application I have done this before but

Can't insert data with mongoDB atlas; Error: queryTxt ETIMEOUT

I've tried to connect to mongodb with node.js, but get the following error. Although I've tried several available solution in this platform, like, changing my D

Error when run in command line "npm install firebase"

C:\Users\user\Desktop\CarInventory>npm install firebase npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: 3d-reac

How can I use node.js to read multiple line from txt file and then perform calculation on it?

I have got a .txt files with few lines that contains numbers, such as 25 26 25 30 12 14 63 16 29 02 22 23 and I need to add all the numbers in the line, so the

How do I redirect to a different page from this function nodejs

I need help redirecting after I submit this order. Basically everything is working but after the order is saved I can't figure out how to redirect the view. I w

Node-Red How to change the property of a node using a function-node

we are working on a group project and we have ran into a problem. We are creating a music player in Node-Red where when you inject start the music file starts t

Mongo DB Update data

I want to decrease previours quantity by 1 how can I do this in Node Js Mongo Db Here is my code: app.put('/quantityUpdate',async(req,res)=>{

How to deploy Nodejs Application on server through cpanel, and how to configure application manager?

I am using reseller's cpanel to deploy a nodejs server and I want that server to run continuously. First, I installed these three on my server: 1.) ea-ruby27-mo

express-session unable to retrieve session variable

I am using express-session to store my sessions persistently on a MongoDB database. The project worked perfectly in a development environment but for some reaso

Best way to structure deep time-series data in MongoDB?

I'm migrated from MySQL to MongoDB and looking to optimize the storage of my time-series data. Each item in my database has an array of values for multiple loca