Category "node.js"

Edit yaml files using js function

I am trying to edit a template-yaml file using a js function. The js function will get a name of organization: org and this will replace corresponding values in

redis scanIterator configuration

I am using the latest redis npm package and I'm trying to iterate through all the keys using the scanIterator(). Is it possible to configure the iterator to MAT

ERROR: Playwright does not support webkit on mac10.13

Here is my code debug log6474 Darwin 16.7.0 6475 verbose node v16.15.0 6476 verbose npm v8.9.0 6477 error code 1 6478 error path /Users/------/onet/node_module

NodeJS app can't work because of dependencies script being blocked due to MIME type error

my teammates and I are currently developing a web game with babylonjs and we need to deploy it on heroku. So I created a file app.js to be the "server" side, he

next-auth JWEDecryptionFailed

I am using this code to be able to use the credentials next-auth provider along with cognito as oauth serviice: this to allow email and password auth. I am runn

find customers in zip code using mongodb aggrigation

I have 2 mongodb documents shop and customer shop documents are like below { id: 1, zipcodes:[ '12345', '11111', ] } { id:2, zipcodes:[ '45678', ]

Is that posssible to post method use in 2 server side url

I added a form and from this value all I set in const then post in API express js server with MongoDB how can I post method use post in 2url const handleSubmi

How to read the user input on the client-side, modify it with JS on the client-side, and then POST it to the sever-side (Node.js)?

Problem: I want to read a user input on the client-side, do some processing on the variable using JavaScript, still on the client-side, then POST the modified v

Error: Cast to undefined failed for value undefined at path "undefined"

I am a beginner JavaScript developer. I am getting this error when I try to get all soldiers by route: "localhost:3005/api/v1/soldiers" in POSTMAN. In order to

upload image using react react and nodejs

i am trying to upload image path in mysql database and show it in homescreen .currently i am having difficulty in storing image path in my sql database and imag

Error while running the command npm install

I'm trying to run a react code and used the command npm install and error(s) pop up: npm ERR! code ENOENT npm ERR! syscall open npm ERR! path C:\Users\AJ\Deskto

Posts text and image to pdf in react

I'm trying to create a blog post website where anyone can post anything. And also any user can download any post in one click. So is it possible to implement a

jest supertest with express-session

I want to test my routes with jest but I don't know how to mock or simulate a session in my test to pass the first if line 2 app.get('/getMailSuiviList', (req,

How to update a single property using PATCH method in Node JS? [closed]

I want to create a PATCH method to update a single property for my API but there is something I don't understand.

npm WARN deprecated [email protected]

Even though Ive updated tar to version 8.3.1 it doesn't allow me to install react(npm install -g create-react-app). After I try to install react it outputs foll

Why doesn't setting NodeJS module cache to false get NodeJS to reload module?

I have 2 files, one named one.js and other name first.js.one.js var first = require("./first.js") require.cache[first.module.id].loaded=false require("./first.j

Unable to run npm install in a gatsby project

I'm working on a project where I'm unable to run npm install as I'm getting the following error. npm WARN deprecated [email protected]: Critical security vulnerabili

node.js get https no responding 504

I am trying to make an https request in my backend node.js web app. I have the following code: const express = require('express'); const https = require('https'

How to fix Error with alchemy-web3 - Webpack < 5

interact.js require('dotenv').config(); const alchemyKey = process.env.REACT_APP_ALCHEMY_KEY; import { createAlchemyWeb3 } from "@alch/alchemy-web3"; const web3

How to fix Error with alchemy-web3 - Webpack < 5

interact.js require('dotenv').config(); const alchemyKey = process.env.REACT_APP_ALCHEMY_KEY; import { createAlchemyWeb3 } from "@alch/alchemy-web3"; const web3