Category "node.js"

Sequelize exclude returns different value

So when I query without attribute: exclude... it returns me the correct user, but when I insert that in the query it returns a completly different user. Here is

Deprecation Warning in Node Js

I'm getting this type of Deprecation Warning, when i was creating Admin Panel for my android app. Here's the code for it- DeprecationWarning: OutgoingMessage.p

Node-gyp fetches headers from internet – not allowed because of firewall rules

I am trying to setup a simple node app in docker. The app needs to install npm package ibm_db. In that installation of ibm_db, node-gyp wants to download header

How do I run "npm run watch" on specific address and port? (Laravel mix)

How can I run npm watch with a specific url and port? In my package.json file I have following the line "watch": "mix watch", in the scripts section, which wor

How to get Server Sent Events in my Flutter app?

I'm trying to receive SSE data as JSON in my Flutter app. But instead of getting the data I'm getting the following repeated arrays of numbers in my console.

Error: Cannot find module './candy-machine-cli.ts'

I'm following a YouTube video about NFT minting and when I enter this: ts-node js/packages/cli/src/candy-machine-cli.ts upload ./assets --env devnet --keypair

stop "npm install" at [..................] | idealTree:regal: sill idealTree buildDeps

when I try to run npm install it stop at this error [..................] | idealTree:regal: sill idealTree buildDeps I have tried for fix it for a long time

FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp() (app/no-app) - when using sinon

I have a NodeJS application and I'm trying to write some tests. Currently, I'm trying to stub Firebase. Current code: sinon.stub(firebase, 'initializeApp'); con

Unrecognized option 'stimeout'

Unrecognized option 'stimeout', is popping up when i'm using the command: ffmpeg -re -rtsp_transport tcp -y -stimeout 1000000 -i "rtsp://admin:[email protected]

Node js SyntaxError: Unexpected token 'export'

I'm having the following error in the console when I try to run my api written in node js. Can you tell me which is the problem.

How to pass a file to server and then send it back to client?

I'm currently working with pdf files in ReactJS and modifying them in my server side. The problem is, i don't know how to pass my file data to the server side a

Cannot read property 'trim' of undefined in Node.js

const express = require('express') const barongJwt = require('node-auth-barong') const app = express() const port = 3000 const barongJwtPublicKey = Buffer.fro

How do I know the level of nesting of my code?

I am writing a custom log function and it would be amazing if it could add some indentation to the log based on the level of nesting of the log. For example thi

Same request in Node JS is failing in Electron

So I am using request module in a simple script I wrote. I sent a POST request to a website and I receive the correct status code (201), but if I run the script

Nodejs and SQLite how create multiple tables?

I have question about creating multiple tables in one DB. I try to run for 2 tables, but seems after the first db.run(CREATE TABLE , second db.run(CREATE TABLE

What to use on Nodejs addons. Node.h or Napi.h

I have some pretty simple questions. What is the main difference between node.h and napi.h. What should I use for normal/personal use case. Why are there more "

Error: PollingBlockTracker - encountered an error while attempting to update latest block: undefined

I'm trying to develop DApp on polygon blockchain. Basically I'm minting NFT but after few mints I get this error. It even happens when I don't mint NFT. Here is

Next.js: How to get static assets from within getStaticProps

I am using Netlify CMS. I want to import all the slides for a carousel into my component. I made a collection called slider and added a few slides. That created

Getting error: The expression is not callable Mongoose NextJS

I trying to save data to a mongoose model on NextJS page. I get a typescript error on this line: await User.create(data) This expression is not callable. Each

how can i make og:url meta tags work in node js

I'm trying to share articles with facebook, this is my code: <!doctype html> <html> <head> <meta property="og:url"