Category "node.js"

vue + vite + ubuntu 20 bugs

I'm very confused. I just saved my code to github from windows, where the vue.js app compiles successfully. But when opening exactly the same code in ubuntu, wi

nodejs oracledb performance diff by the way of binding params

I wonder if there is a performance difference between below cases. nodejs oracledb lib - express server connection code - 1 query, 1 connection whenever I send

Electron-log with file transport is forcing app reload

I am using the electron-todo template and trying to create a log file that recovers the data in the event of a crash. The app reloads every time the log file is

what is the equivalent of Java's System.out.print() in javascript [duplicate]

It seems console.log() is the equivalent of System.out.println() How to print strings in the same line with multiple calls? Like: for (let i=0

socket.io doesn't send message back to socket

i'm working on an app which communicate with server via socket.io, users in my app have unique ids which i want to use on my server so i made a small class whic

Stripe didn't create invoices

According to stripe's dashboard (test mode), customer's next subscription invoice should have been created on April 28th at 5AM but it's April 29th today and th

node.sass not compiling index.scss file with variables

I'm trying to get node-sass to compile the following index.scss file. The error returned has to do with a call in bootstrap.scss file within node_modules. @imp

Images not showing up on Opensea, unable to update

Using node,vscode, Create-10k- NFT-Collection My baseUri is not updated. I’m a newbie but I have tried reading and looking through help sections. Here is

How to get less than or greater than value based on specific column in mongodb using node js?

Suppose that,I have a product collection named productCollection.How can i get all those products where the product's amount is less than a specific amount?What

OpenSea Error - Please use providerUtils.standardizeOrThrow()

I'm having trouble using the openseas.js library. I'm trying to do a getAsset call on a random asset on openseas I found, but I keep getting Error: DEPRECATED:

How to get specific chunks from stream node js

I'm trying to make a server that are used like a "CDN proxy". We have S1: main server that has all media S2 CDN proxy client The aim is: obtain a stream from se

How to expose any API globally on Node

I have a web development framework which I use on personal backend projects. All web apps revolve around my framework and the API is quite big so importing it i

Promise { <pending> } React bcrypt hashing the Password [duplicate]

I am creating a Login/Registration Form Using Nodejs. I am hashing the password entered by the user using bcrypt.js but when I assign the pass

Searching buffer string using Nodejs

I have an Revit .rvt file (which is a .7z file under the hood), which I know contains a specific phrase within the first 30,000 bytes. I've attempted to use Nod

When i fetch Heroku deployed a link, there is an error 500 (Internal Server Error)

If i used http://localhost:5000/login everything is working. When i used live link https://auto-shoroom.herokuapp.com/login there's the error POST https://auto-

How to escape apostrophes using NodeJS

I'm trying to update a column in my PostgresQL database using Nodejs: res.rows.forEach((tmdbID) => { (async () => { const json = await fetchMovieDat

Typescript SyntaxError: Cannot use import statement outside a module (side file containing functions)

I am creating a minecraft bot using mineflayer library. After a bit of work I decided to make code readable and reusable (image of file organisation) and also s

Server can not perform JWT Authentication Request on MERN

I was working on a MERN app and was trying to use jason web-token (JWT) and bcrypt for authentication. It uses two routes for signup and authentication. However

Async function not running some code even inside await

I have a Node.js AWS Lambda function created via the serverless framework. I have multiple helper functions inside it. I am having an issue with one of them due

How to append to second last line in a file in NodeJs

I want to append to second last line of a file using NodeJs! I hope I am making sense. Thanks in advance My current code which appends to end of the file: fs.ap