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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
2 views

Do I need to learn nx for backend?

I started learning backend on Node. I recently completed a course on NestJS, now I’m watching a course on microservices and nx is used for monorepo. Should I go through monorepo and nx. As I ...
Владимир Соснов's user avatar
0 votes
0 answers
4 views

addSqlCommenterCommentToQueries open telemetry with auto-instrumentations-node

I'm trying to add an sql comment on my queries using opentelemetry node auto instrumentations and addSqlCommenterCommentToQueries flag within @opentelemetry/instrumentation-pg. All the ...
Oshri Maayan's user avatar
0 votes
0 answers
12 views

Axios Error while connecting react-native to node.js

I've made an axios HTTP request in the following function: const uploadImage = async () => { try { const { fileUri } = state; if (!fileUri) { console.log('Please select ...
Kushagra Saxena's user avatar
-1 votes
0 answers
13 views

Error.captureStackTrace(this) in error.js

I am new to MERN development, while working on Backend coding when I use to validate my form data through Joi. And when I want to handle error message from validation through middleware. Moreover when ...
siki fazal's user avatar
0 votes
1 answer
19 views

HTML is not rendering properly in nodemailer

<div style = "height:auto;width:auto; background-color:#5C81F4;display:flex; justify-content:center;"> <div style="display:flex;flex-direction:column; width:90vw;height:...
Roshan Ojha's user avatar
0 votes
2 answers
30 views

Discord bot deletes every message

Is there any way that I can stop my Discord bot from deleting all messages? I only want to delete messages that include banned words. client.on('messageCreate', async message => { if (message....
Frisado's user avatar
-1 votes
0 answers
13 views

How can I Enable localhost loopback in Microsoft Edge

I am new to the react development current using a legacy application: with node v14.21.3 with windows 11. getting the following error: PS C:\react_apps\abcdocs_add_in_word> npm start > ...
vidur punj's user avatar
  • 5,177
0 votes
0 answers
6 views

Trouble Accessing Node.js and Express Server from Static IP Address

So I'm basically moving over a node.js and express server from LocalHost to a static IP address instead (so I'm able to access it remotely without my local computer). I feel pretty certain on the code ...
luturkey's user avatar
0 votes
0 answers
8 views

Webpack hot-reload with remote server

I'm wondering if there is a way to make hot-reload work while developing on a remote machine. Here's my setup: I have a remote vm that runs a webpack dev server. Locally a connect to my remote machine ...
Robert's user avatar
  • 43
0 votes
0 answers
10 views

WebSocket connection failed using socket io

I have bought a shared host and went to move the files and setup the socket.io but it gives me this error , I have everything working properly in my localhost (https://i.stack.imgur.com/1jk94.png) I ...
Yousef Saeb's user avatar
-1 votes
0 answers
37 views

Nested type assignment in Typescript

Long story short, I'm performing an API call, and this is the data that I'm getting back: { getUserInfo: { country: 'DE', email: '[email protected]', id: '123456', name: 'Test Person' ...
mrodo's user avatar
  • 581
0 votes
0 answers
6 views

How can I create a task for heroku using node?

Im trying to write a task for heroku advance schedule. How can I write a task like this in ruby, in nodejs? desc "Pings PING_URL to keep a dyno alive" task :dyno_ping do require "net/...
learncode's user avatar
  • 202
-1 votes
0 answers
12 views

Is there any way I can install nodeJS on macOS 10.13.6 high sierra?

I want to learn react. I think the current version 20 of node js isn't supported by high sierra. I downloaded it and installed it. as I went to the terminal to check if it is installed or not it ...
Puskar Niraula's user avatar
0 votes
0 answers
18 views

get the server's hostnme (not the request's hostname) [duplicate]

in a simple server like that, is there a way to get the server's hostname? let app = express() server.listen(3000, () => { let serverHostName = '???' }); note that, this is different ...
Sherif eldeeb's user avatar
0 votes
0 answers
12 views

The npm version stays unchanged when I switch node version with the n library

I want my npm version to match my node version but no matter what node version I change it to with the n library the npm version is always 9.5.1 on my mac. > node -v v16.14.0 > npm -v 9.5.1 > ...
yong ho's user avatar
  • 3,932
0 votes
0 answers
8 views

How to fix the connect MongoDB with home network

heloo ... I work on MERN project my problem is when I try to connect in mongoDB atlas I get timeOut connection when I use the home network but it works for me when I use a 4g network I tried to ...
Sidou Gmr's user avatar
  • 122
0 votes
0 answers
10 views

Appwrite Endpoint for cloud function using docker

I am having problems with my server function. I am setting the client endpoint to all variations, but the function still crashes. I tried: localhost/v1 http://localhost/v1 localhost http://192.168....
Ruboka's user avatar
  • 63
0 votes
1 answer
10 views

Azure Pipeline fails on npm run build, missing vueapp.key file

I'm having problems with building Vue app in azure pipelines, I do not have experience with NodeJS or Vue, and I'm not sure what is is looking for. Locally my application builds and runs without any ...
matendie's user avatar
  • 693
2 votes
2 answers
36 views

Delete specific object in array element in document and save mongoose

I want to remove an object from my array. First, I want to find the customer by their ID, and then within the customer model in the array of carts, I want to delete one of the items based on the ID. ...
amir zakipour's user avatar
0 votes
0 answers
10 views

iOS Push Notifications with Firebase Cloud Messaging (FCM) - Invalid Registration Token Issue

I'm encountering a challenge with implementing push notifications on iOS using Firebase Cloud Messaging (FCM). While Android notifications are working correctly, I'm facing difficulties when sending ...
Okiain's user avatar
  • 11
0 votes
0 answers
26 views

How to Load 100 million rows csv into relational db MySql using node js within less than 10 minutes [duplicate]

I have one csv file it contains 100 million rows with 10 columns. Currently it takes more than 1 hour to load 100 millions of rows. To load CSV using Node JS into MySql DB, I used batch processing and ...
sdc8879's user avatar
-3 votes
1 answer
77 views

How to turn a 10 GB zip file into 5, 2 GB files using NodeJS

var fs = require('fs'); var archiver = require('archiver'); var output = fs.createWriteStream('./test.zip'); var archive = archiver('zip', { gzip: true, zlib: { level: 9 } // Sets the ...
Dekillston's user avatar
0 votes
0 answers
16 views

Hosting Nodejs(Express App) On Apache server using Cpanel Application manager

I am a web developer, Sorry for stretching out my question. I have never worked on VPS before or I am an absolute beginner to VPS servers but have common knowledge of Linux systems. While I was ...
imtiyaz's user avatar
  • 11
0 votes
0 answers
10 views

Entity manager is undefined in custom validation nestjs

i am trying to create custom validation for unique values in all tables but it give me this error ERROR [ExceptionsHandler] Cannot read properties of undefined (reading 'getRepository') TypeError: ...
Hager Khaled's user avatar
0 votes
0 answers
19 views

Querying referenced mongoDB collection with mongoose

My mongoDB document schema for favourite products is currently structured below: { _id: ObjectId, addedBy: ObjectId, product: ObjectId } I am trying to query the product collection referenced ...
Hamed Jimoh's user avatar
0 votes
0 answers
10 views

inserting OSM overpass API using Node.js to Postgresql

The other elements such as id, tags, and type of the object can sucessfully inserted to the database. However, the columns of lat and lon is giving null value. I tried the column type of (decimal, ...
Lazuardy Sulaeman's user avatar
0 votes
0 answers
11 views

Error while running command npm run serve

When i am starting my server using npm run serve. I am getting this error as: serverCodenode_modules/file-system/vendor/util.js:34 [1] target[key] = value; [1] ^ [1] [1] ...
Rajesh Kumar's user avatar
0 votes
0 answers
16 views

Creating Product Sets on Facebook using Graph API or Javascript SDK

I am trying to create product sets from an existing catalogue on facebook. I was able to use nodejs-facebook-business-sdk well so far to fetch the catalogueID, the product ids and other fields from ...
ItsHr0gd's user avatar
0 votes
0 answers
12 views

ExcelJS - Read Multiple worksheets in the same Excel

I have 1 excel contains multiple sheets like below screenshot: I am trying to read excel file using ExcelJS module. https://www.npmjs.com/package/exceljs#exceljs const Excel = require("exceljs&...
steveS's user avatar
  • 41
0 votes
0 answers
6 views

Scheduling tasks to run on heroku - How does it work in detail?

I have depoloyed to heroku a project where Im using node-schedule, wehre a job is supose to run every 20 min. Ive been reading about heroku dynos and advance schedule and I find it still confusing, so ...
learncode's user avatar
  • 202
0 votes
0 answers
24 views

User Validation Node.js/MySql

To give context, I was doing a job test, and my senior asked me to create a system to mass update the workers  turns.Everything was fine until I got stuck in the part where I needed to do the user ...
Arsene's user avatar
  • 1
0 votes
0 answers
6 views

Proxy error: Could not proxy request /api/user?search=tester from localhost:3000 to http://127.0.0.1:5000/ (ECONNREFUSED)

"Proxy error: Could not proxy request /api/user?search=tester from localhost:3000 to http://127.0.0.1:5000/ (ECONNREFUSED)," indicates that the frontend (running on localhost:3000) is trying ...
souravsk_08's user avatar
0 votes
0 answers
6 views

Sequelize model relationship not working in NodeJS

Hello I am new to the Sequelize ORM library. I am trying to associate some models with one another. When I add relashionship with model then it gives me following error. throw new Error(`${source.name}...
Akeem's user avatar
  • 19
0 votes
1 answer
18 views

Multiple namespace handling in angular using socket.io

I have two clients, where I have defined static namespace "/CGI_ONE" but when I connect "/CGI_TWO" it disconnect the previous socket.io how do I manage both in node js and angular ...
Vipul Tecknotrove's user avatar
1 vote
0 answers
40 views

Backtrace doesn't work in GDB but works in LLDB

I'm trying to debug a nodejs core dump as an experimentation. My main target was simulating a production problem and seeing V8 stack trace in a core dump. Therefore I intentionally wrote a piece of ...
caltuntas's user avatar
  • 10.8k
0 votes
1 answer
19 views

Space getting trim while extracting the PDF document using "pdfjs-dist" ( pdfjs ) package in nodejs Application

while extracting the pdf document into text i'm getting an issue, its removing extra space and converting into single space Attached the pdf doc image for ref - enter image description here. PDF data -...
Gaurav Goyal's user avatar
0 votes
0 answers
9 views

Error with the _id property in GridFS storage in mongoDB while uploading files

I was tring to build a social app where users can post articles with images, to store these data I am using mongoDB with gridFS for storing images. I am using multer-gridfs-storage to use as a ...
Somdev Behera's user avatar
-1 votes
1 answer
47 views

Working on local but getting 500 error on vercel in Nextjs

This is the route.ts import fs from 'fs'; import path from 'path'; import PizZip from 'pizzip'; import Docxtemplater from 'docxtemplater'; import { NextRequest, NextResponse } from 'next/server'; ...
Soham Ingle's user avatar
0 votes
2 answers
69 views

How to detect if user press back/forword arrow of browser in JS/Jquery

I have only 2 routes / and /about when I am on URL localhost:8080 -> it renders my home page localhost:8080/about -> it renders about page If user open home page and click on about button ...
Ashutosh Jha's user avatar
  • 15.7k
0 votes
1 answer
33 views

Streaming Webcam Over LAN: HTML5 Video Element Not Loading

I am currently working on a project where I aim to stream my webcam over my LAN and read the stream in an HTML5 video element with minimal setup. My setup involves a server (192.168.0.1 dev/video0 -&...
Franck Freiburger's user avatar
0 votes
0 answers
31 views

Turning npm package into an .exe file - what am I doing wrong?

I want to include the npm package Mapshaper as a dependency in my Tauri/Svelte app. I'm using it to reduce the file size of some .shp files after I download them from an API. However, it does not do ...
Sidders's user avatar
  • 125
0 votes
0 answers
11 views

api key statistics skywalking

Hello everyone There is an application on node.js, how do I build and display a dashboard based on endpoint usage statistics with separate api keys? My app on node.js 16 + postgres + skywalking. For ...
-1 votes
0 answers
39 views

What is needed for a node/typescript dynamic import to work? "await import(node:fs/promises)"

Per the below, I've tried a wide number of different configurations, platforms, targets, etc, too long to list here and read the specifications, but the following is a bit of a mystery, so I'm finally ...
jonas's user avatar
  • 1
-2 votes
0 answers
22 views

No responding when use node.js to run js file on vscode terminal [closed]

Could someone can help please, I just installed the node.js and want to run an app.js file to output the console.log('xxx') When I input node ./app.js,there is nothing happend on the terminal. No ...
C G's user avatar
  • 1
-2 votes
0 answers
12 views

i getting render error to deploy the back end

getting error deploy in back end to render.com and so many attempts i cant fix the issues please find of the solve my package.json { "name": "to-do-list", "version": &...
Mathew Mass's user avatar
0 votes
0 answers
29 views

Unable to send email using nodemailer in production server

I have some issue with sending email using nodemailer in nodejs. Like it is sending mail from local server but when it is in production server it giving response that suceessful but not reciving any ...
Dillip Kumar Sahu's user avatar
0 votes
0 answers
14 views

How to deploy node with yarn in vercel

I have a node program with this package.json: { "name": "create-nodejs-express-app", "version": "1.7.0", "description": "Create a Node.js ...
Farid Cenreng C038DSX0869's user avatar
0 votes
0 answers
16 views

Getting a `findElement` error using JavaScript in Selenium, but not sure why

I am new to Selenium and automated testing in general. I have set up Selenium Webdriver and Cucumber JS in a Node.js environment and have successfully completed some tutorials. However, I cannot seem ...
MeltingDog's user avatar
  • 14.6k
0 votes
0 answers
14 views

Is there Any better way to run a node js file in task scheduler

I was trying to run a node script by task scheduler.But it gives me an error. I have tried Cmd , git bash for script running. This command line cd C:/Users/Emon/Desktop/Keepa-To-Airtable && ...
Emon Hossain's user avatar
-1 votes
1 answer
17 views

How to add custom vallidator for Node.js / app.patch method findByIdAndUpdate

this question about backend development node.js how do i update a database data by using object id please help me to learn those things custom validator app.patch("/users/:id", async (req, ...
Ganeshan Kugathas's user avatar

1
2 3 4 5
9381