Category "node.js"

Node ESCPOS printer text alignments are not working for STAR printer

I am using ESCPOS library for printing menu items using SP700 star printer. Data is coming properly in print but align and style properties are not working. My

(hashlips_art_engine-1.1.2_patch_v5) The "path" argument must be of type string. Received undefined

I'm trying to update some metadata for 10 JSON files, some of them get updated properly and some others give me the following error. Below you can see 6 files g

How to parse video stream coming from the nodejs server

I'm creating a video streaming service, the backend code look like this: const stream = new Readable(); stream.push(movie.data.slice(start, end + 1)); stream.pu

Cannot install mongo node.js

MONGO HELP I have tried many times to install mongo but I failed. I also checked my network cable but it is working. I am really worried for this kinda problem

session changes are losing when request ends in react and nodejs

Hi am trying to implement authentication using node js sessions in file mainLoginArea.js i am calling a function goButtonClicked which helps user to sign in by

Package/bundle a NodeJS application that uses prisma?

I have a typescript project (a small CLI application) that uses prisma. I can compile (tsc) the project and run it (node build/index.js) just fine, but I want t

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