Category "node.js"

Finding documents that fit json input in mongodb

I'm trying to do a write statement that finds all the documents that fit the JSON data fed through a form. Here's an example of what the JSON looks like. I crea

Receiving "unmatched pseudo-class :lang" after updating Angular

After updating node, I started receiving the following error: custom-file-input:lang(en)~.custom-file-label -> unmatched pseudo-class :lang I am not unders

how can I use node-canvas in electronjs-17 on windows?

I've installed all essentials for my windows to build application with electronjs. versions: node -v v17.5.0 npm -v 8.4.1 > My dependencies "dependencies"

TypeError: flatMap is not a function

I was trying to install parcel to run my own npm package but I get the following error when starting the HTML with parcel lib: TypeError: [(...previousDevDepReq

jsonWebtoken nodeJs wielding different results compared to https://jwt.io/

I'm trying to get a jsonWebtoken with jwt.sign(payload, secretOrPrivateKey, [options, callback]) but I just can't reproduce the same value which is created onli

Cannot run npm install on ubuntu

node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node) Above is the error I get when running npm install on ubuntu. I have no

CSS Not Linking To HTML Replit

I am using replit to host a chat server using Node.js and Socket.io. I used the getting started guide provided by socket.io (https://socket.io/get-started/chat)

with put request data dosent update in ui without reload page

i have an issue .i am doing a project where want to update quantity of product.i am able to sending updated data to database with put request but my ui desent

Javascript merge objects with same property [duplicate]

I have an array of objects like this : const arr = [ {"id" : 1, "name" : "john", "age": 12, "fruits": "banana"}, {"id" : 2, "name" : "john

getting error trying to connect proxy to pupeteer

Im getting the error Error: net::ERR_TIMED_OUT at http://lumtest.com/myip.json const puppeteer = require('puppeteer'); (async () => { const browser = aw

converting one form of json into another form of json object using javascript / node js

here data1 and order of content get changed everytime that why I used switch statement I am running a function by passing value like this parser(values[key]);

what's differnce between push() and callback in nodejs Transform

i'm implementing a Transform stream which is piped by mongoose cursor (which works like readable stream, (or maybe it's real readable stream)) const myTransform

I am getting an error while installing Truffle on windows. Does anyone know how to fix this

This is the error I was getting while installing truffle through nom -g install truffle. Does someone knows how to fix this issue and also got error after insta

I am getting this error TypeError: Cannot assign to read only property 'map' of object '#<QueryCursor>' 2022-02-19T12:38:49.101286+00:00 app[web.1]:

I am trying to deploy my node.js app for weeks but I am not able to deploy it, Please can someone please help me to deploy this, I have done everything, but sti

Async child_process.exec with TypeScript

I'm trying to use a child_process.exec call with TypeScript, and error handling seems excessively hard to get right. Here's the gist of what I'm trying to do: i

The edge module has not been pre-compiled for node.js version v14.18.1. You must build a custom version of edge.node. getting this error

{ "name": "electron-js", "version": "0.0.0", "description": "ElectronJs", "main": "app.js", "scripts": { "start": "electron ." }, "author": { "name": "Ralph" },

pass variables from front to backend

i have a vue js project with front end and i have a field with variables that i want it when its changed it will go to backend and change there too any idea? th

Correct way to pass multiple values for same parameter name in GET request in javascript or nodeJs

I wanted to write the response like this using nodeJs: http://server/action?id=a&id=b Or http://server/action?id=a,b

"No routes matched location" error in React

I am creating a React app which can be used to manage company events. There are two components related to events that aren't working at the moment. These are th

Import.meta.env undefined on production build vitejs

I am using vitejs to compile my react app statically, however after build .env imports become undefined which is not the case on development stage. reading the