Category "node.js"

Metro has encountered an error: While trying to resolve module `@apollo/client`

I am trying to install GraphQL into my React Native app and in doing so, I was given this error message. I have confirmed that the file actually exists and have

Can't install nodejs in Termux on Android

When I do pkg install nodejs or pkg install nodejs-lts it gives me a this message: Checking availability of current mirror: ok Ign:1 https://dl.bintray.com/gri

Cannot access to WSL2 port opened via IPv6 from Windows host

I have a node-server running at WSL2 Ubuntu-20.04. netstat -tulpn in WSL shows the following ports: The ports specified as 0.0.0.0:8080 can be accessed in both

Setting a title and favicon for non-html files on a website

Is there a way to set a title and favicon for non-html files on a website? For example, a link like https://example.com/files/image-or-something.png. By default

pm2 can't find package.json when start

I try to start my app on VPS.I can start my app in terminal, but when I work with pm2 , I get the error 0|gentle-s | Error: Cannot find module '/root/my-app/ind

npm: Replacing one package from dependencies with a fork (possibly using git)

I'm using terser, which requires esprima. Esprima has been abandoned, so I'd like to replace it with the fork esprima-next. However, no method which I've used t

Would like to write a javascript that helps me to find documents in a folder

I would like to write a js for an offline website (located on a local Windows server or any other server). It's supposed to look for files like PDFs in several

NodeJS app build is successful (Render) but Application Error in render at the launch. Status is failed, no error logs

Status shown failed but in console log deployed successfully & server is up. Image for your referance app url

Facing issues with npm i and installing npm packages

Hi I'm trying to install NPM package via NPM I, however I constantly get this error: npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ER

I am trying to connect and read data from mysql in node js and react project with clinet and server setup but

**I am trying to connect and read data from MySQL database in node js and react project with client and server setup but unable to get success, here is the code

Nodejs readstream, what value should I use for highWaterMark

I have a copy function that uses createReadStream and createWriteStream to give me progress events during a file copy: createReadStream(source, { highWa

Embedding issue / All messages send at once

I'm having this issue where all my embeds are together. How do I separate them? My issue is that every time I run the embeds send together, I know the issue bu

Command prompt pops up and closes

My command prompt opens up randomly for like 10 seconds and then closes. The title says npm. I don't know what is causing it or how to solve it. Do you guys hav

TypeError: cleanUrl is not a function while creating a React Project

Hey everybody I am getting this error after hosting a website on firebase or I am not sure about it. It's the replace-info.js screenshot. I am not able to fi

How to use resemble ai api

I have tried to create a project in which I can use my voice in text to speech in Javascript but I recieved an error saying this. https://i.stack.imgur.com/fnIp

NodeJS heapUsage unchanged when using fs.readFile vs streams

I've been learning about memory management in Nodejs and I'm trying to understand why the following two behaviors occurs: PS: I'm using the following utility fu

Change region of firebase cloud functions of callable in v2

Hey so I am trying to upgrade to v2 of firebase cloud functions, but when trying to change the code I noticed that my functions do not have .region anymore like

Calling JDBC from Node.js: java.lang.UnsupportedClassVersionError

Not quite a duplicate of this Q&A when I try to use a JDBC driver from Node.js. For reference, Node.js runs initialize.js which is the following script: var

Node JS file write time [duplicate]

I have code that writes data to a file, how can it be done to show how much time it took to write a file? const fs = require("fs"); fs.writeFi

What is the equivalent of this php code in Nodejs?

I have this php code to encrypt and decrypt with RSA, I use only the encrypt data, because I need to decrypt the data with Node.js <?php include 'vendor/auto