Category "node.js"

Sequelize UUID with mySQL: Unable to set default value

I've been trying for awhile to set id (primary key) for my Users table as UUID. However, I keep getting this error: Field 'id' doesn't have a default value, whe

'CANNOT LINK EXECUTABLE "node": library "libcrypto.so.3" not found

In Termux (my_distro): $ pkg show openssl Package: openssl Version: 3.0.1-1 Maintainer: @termux Installed-Size: 6648 kB Depends: ca-certificates, zlib Conflicts

Prisma.js: We found changes that cannot be executed

I've used prisma.js as an ORM in my project. After executing the npx prisma migrate dev --name rename_and_add_some_columns, I got this error: We found changes

run exe on click of the button using js node in Adobe CEP

I'm developing a js CEP panel for Adobe Premiere Pro. I know how to run exe concurrently with my panel. Here is a simple code and it works: var csInterface = ne

How to store and retrieve checkbox state on refresh of page? Mongoose/EJS/Nodejs/Express

I have a checkbox, essentially like a to do list. When i check the box, I want to retain the state even after i refresh the page by using mongoose. I do know of

I am trying to set a cookie in supertest but it does not work

I am trying to set a cookie session to a post request in supertest but I cannot. This is my test code: const app = express(); app.set("trust proxy", true); app

(JavaScript) Best was to check for multiple conditions and end execution as soon as one returns false?

I am currently working on a duty rota App. I need to calculate which employee can work on every particular day of the month. This must also be updated "on the f

multer node js upload image

when i send a new image the link apper like this: uploads\854645135.jpg i want to change this antislash"" to slash"/" cause i can't find this data in frontend c

My userinfo command in discord.js is giving only errors

I am trying to make a userinfo command but it aint working.. Only giving errors like: .join is not a function or member is not defind. My friend also did not ge

Can vite package nodejs back-end projects?

Can vite package back-end project such express or koa? How can we pack a back-end nodejs project?

How to mock a 'request' node module for testing in jest

I am new to writing test cases in jest and i wanted to test 'mark' function and want to mock 'request' node module. let's say this file's name is app.js and tes

npm ERR! could not determine executable to run

I wanna run my project by npm run watch and when I do nothing, it suddenly appears an error like this. git:(master) ✗ npm run watch > watch > npx

Azure Blob Storage .uploadStream() hangs on larger files

I'm currently working on the capability to upload larger files to Azure Blob Storage using Express.js and the @azure/storage-blob package. What I have works fin

Unable to Build node rdkafka on Apple M1 air

I am trying to run npm install node-rdkafka on my m1 air but I am getting this build error. npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE packa

How to add style in Vue js 3 on a cdn based app

I'm learning Vue js. I created a Vue JS app with cdn link and I want to know, how to add element style to it. I can write template as template: <div>Vue j

Why live share not work on visual-studio code-oss?

I have installed in my arch system code-oss following this guide https://wiki.archlinux.org/title/Visual_Studio_Code i have also modified product.json ,installe

How to use Exec / ExecFile on Javascript to run a java file and get the result

Running this JS file on the server side of my website so when the user presses a button, it executes this command with my API: exports.runAlgorithm = async (req

cannot find module '@babel/generator' but it installed

i have " cannot find module '@babel/generator' " error while trying generate signed apk. But i installed this package using yarn add, this is part of my package

github Dependabot alert: Inefficient Regular Expression Complexity in nth-check

Possible duplicate, but couldn't find any clear answers. Dependabot cannot update nth-check to a non-vulnerable version The latest possible version that can be

Issues Running react project, SEVERAL module not found errors

so I'm trying to run this one react project (one that I've run SEVERAL times & has worked SEVERAL TIMES before), but for some reason, it just doesn't work a