Category "node.js"

How can I set a flash variable in Next.js before a redirect?

Laravel in PHP made this easy with https://laravel.com/docs/9.x/session#flash-data, so I figured Next.js would have an easy way too. I thought I'd be able to do

Unable to install grpc-tools via npm or yarn on mac m1 chip?

Commands Used to install: npm install -g grpc-tools yarn add global grpc-tools While trying to install grpc-tools on mac m1 BigSur. I ran into errors pasted

How to use feathers with graphql?

I want to build graphql in feathers. And try below method。 from index.js /* eslint-disable no-console */ const logger = require('./logger'); const app =

Make a change to the database with Prisma.js without having to reset the whole thing

How can make a change to the database with Prisma.js without having to reset the whole thing? if I have used this command npx prisma migrate dev --name role-mak

What is causing a npm install nuxt error?

I have just started a Nuxt project on WSL running Ubuntu 20.04. I am using Node.js LTS/Fermium and I installed some dependencies for the project, but when I try

Need help using a node js state-machine-cat API

I'm working on a UML project and needed a tool to render State Machine Diagram on a website. I found this cool API but I don't understand how to use it, I'm ver

MS Graph API 403 error when calling users even access is granted

I am generating access token by the following route in my node.js https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token After that I get access_token

res.download() callback function doesn't work properly

The callback function for res.download() is supposed to run when the download is finished. But sometimes it runs when download is still in progress. Is it a bug

NodeJS hendt/ebay-api / getOrders / Error - Insufficient permissions to fulfill the request

So I am using the hendt/ebay-api library but having no success with the getOrders call. Here's the auth scopes I'm using when setting the ORIGINAL User access t

npx create-react-app my-app ERROR "In most cases you are behind a proxy..."

Error when using npx create-react-app my-app. I'm new in node and react and I'm trying to create my first react app. I seem to have fairly good internet connect

Import Javascript file into Electron loadURL

I was wondering how could I import a javascript file into a website with Electron? By that I mean: mainWindow.loadURL("https://a.website"); mainWindow.loadScrip

Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) on github actions

i have created an github action to deploy the code when pushed. it cause this error when installing the packages. Run npm i --no-optional && cd client &

NodeJS : Share a log module instance inside my app

I create for my project a log module and i am actually creating a new instance in all module to allow them to log in cli with the right syntax,color conf etc. F

Is there a way to view any worker_threads that are currently in use in node.js?

I am looking at worker_threads in node and have a simple endpoint that will create a new worker thread and run a CPU intensive script that takes a long time to

What is a rich object?

I'm learning Express. While doing a tutorial, I stopped to try to figure out why the tutor used express.urlencoded({extended: false}). I learned what url-encodi

How to do a secure login with web3 (Metamask)?

So, I want to do a webpage, where you have to log in with metamask, only. I've seen that cryptokitties.co did a really good job, not even prompting for a passwo

Correct way to auto create aws api gateways to existing apis

I am building 2 separate nodejs microservices (using express inside each etc). What is the correct way to properly automate creation of AWS Api gateway's so tha

vulnerabilities error while installing via NPM, ( npm audit fix ) also not working

I was working on a react project and wanted to install react-icons so run npm install react-icons in the command prompt. but after a while it throws these error

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