Category "node.js"

How to get query result from postgraphile running as a library

I have postgraphile running as as express middleware. For example: const pgMiddleware = postgraphile(pool, SCHEMA, postgraphileConfig); app.use(pgMiddleware);

How to resolve "Uncaught ApiError Error: Project project-name has been deleted." issue in VSCode for Google Cloud function development?

I am very much new to GCP & Node JS, recently I started working on a cloud function development in Nodejs.I researched many websites to begin my development

Cannot install node-sass on windows

Im trying to install node-sass. I have both python 3 and 2.7 installed along with the visual studio build tools yet node gyp still fails. Trying to uninstall an

How to upload contentBytes chunk by chunk on Graph url return by createUploadSession graph API?

As per microsoft graph API documentation the createUploadSession graph API only return the URL where attachment can upload but how to upload attachment chunk by

Error with node-sass when running npm install

I'm getting the following errors whenever I run npm install on a vue.js project 5769 error code 1 5770 error path /*my path*/node_modules/node-sass 5771 error c

Elephant.io server error with Php( An error occurred while trying to establish a connection to the server)

I have a question for you, I'm using socket.io and elephant.io in my php application, but I've been dealing with the error I got by elephant.io for almost 2 day

NPM Installation Issues on Ubuntu: Installing Expo-Cli

I ran the command: npm install expo-cli and got these errors. I already upgraded npm on ubuntu. Do I need to install these tools one by one or there's somethin

Delete a word from a string which contains hashtags

I have already done a lot of "filtering" with regexp to remove unwanted characters from a string, this is what i am using: var regexpHashtag = new RegExp(/(?:^|

Windows 10 - Error code 2330 occurs when trying to uninstall or change program

Every time I try to uninstall, change or reinstall Nodejs application, the process ends with error 2330. The problem started when I was trying to install new np

535 5.7.139 Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully

I'm trying to send email via nodemailer. And sender email is of microsoft azure. But I'm getting error-response: '535 5.7.139 Authentication unsuccessful, the r

Loading saved messages using socket shows duplicates to other users

So basically I have a chat app in html and nodejs and js and I am trying to load messages that were sent previously so people can see chat history if they join

How to console.log without a newline in Deno?

How do I print a new line to the terminal without a newline in Deno? In node.js I used to do: process.stdout.write('hello, deno!') Is this possible in Deno? De

How to send SMS using node.js

I want to make web app designed to send SMS via web interface. How can I send SMS (from my phone number) to specified recipient using node/express? Is twilio th

Getting error: Cannot read properties of undefined (reading 'id')

I am getting the following error in my terminal while running the code: Cannot read properties of undefined (reading 'id') I have one middleware and other rout

Postgresql req.query returning everything instead of what is being queried?

My getByTitle query doesnt seem to work, all my other routes and models work perfectly using params. Not sure what it is I've written wrong? For context this is

TypeError: require(...) is not a function while Using sequalize with node js

I am beginner in web dev and trying to create a Full stack project using Mysql Express React Node js. Facing this TypeError issue while using Sequalize with nod

Document Read and insert with locking/transaction in nodejs with mongodb

In reservation system, only 5 different user can create bookings. If 100 user call booking api at same time than how to handle concurrency with locking. I am us

NPM CI error bindings not accessible from watchpack-chokidar2:fsevents

When I run npm ci on Github Actions I got the error: Run npm ci npm ERR! bindings not accessible from watchpack-chokidar2:fsevents npm ERR! A complete log of t

Typeorm. use only the date part while querying via date and exclude the timestamp part

I have a use case where I have to retrieve a users record from the database via his date of birth. The thing is that we have stored the date of birth of the use

Mongoose - array of enum strings

I have a Schema that has a property with the type of array of strings that are predefined. This is what I've tried to do: interests: { type: [String], e