Category "node.js"

Laravel Mix HMR Server Does Not Launch

Laravel Mix Version: 6.0.43 Node Version (node -v): 16.13.1 NPM Version (npm -v): 8.1.2 OS: Windows 10 21h2 Description: THIS IS HAPPENING ON A FRESH NEW INSTAL

How do I copy to clipboard using clipboardy?

I am trying to use clipboard in order to copy 'longlat' to the clipboard by passing it through the function 'copyData()'. However, it keeps giving me errors. Th

Mongoose data Writing issue in Javascript

Just started with a javascript couple of days back. I am trying to use MongoDB with mongoose to write the data but it is not writing even though the connection

I get error when running npm start in vs code

(node:6852) [LRU_CACHE_OPTION_maxAge] DeprecationWarning: The maxAge option is deprecated. please use options.ttl instead (Use `node --trace-deprecation ...` to

is installing mongodb on cpanel reliable?

CPanel says that it does not support mongo installation but I can install it manually. My question is should I install it or just subscribe mongo atlas and conn

Get updated value from database

How do I watch for a specifc Mongodb-query? Currently I have tried with collection.watch(), but I am only getting the new value. An example: user1 = [user3, use

I can't solve the dependency tree every time i try to install @craco/craco

Unable to solve dependency tree trying to install tailwind. This is my package.json: { "name": "front-end", "version": "0.1.0", "private": true, "devDep

How to remove "Waiting for the debugger to disconnect..." from VSCode console

When I run anything in the VSCode console it shows Debugger listening on ws://127.0.0.1:51890/cf1cb459-52b1-447f-8f78-aa5e8ff4caef For help, see: https://nodejs

How can i intercept third-party https request call, block it from going out and send my own response? Is it possible to do?

I can log all outgoing api calls to third parties that happen via sdk functions, but I need to prevent them from going out and provide my own custom answer inst

How do I update a record using the put API?

As you can see in the React Js code I am trying the Reduce one by one quantity when clicking the Delivered button. When the Click Delivered button quantity bec

Is it possible to create a tile 2x2 mosaic using Sharp Node?

Using Image Magick I was able to use montage to make this: With this code: montage -density 300 -tile 2x0 -geometry 150x150^ -gravity center -crop 150x150+0+0

asdf ASDF_DOWNLOAD_PATH: unbound variable for nodejs

when I try to install nodejs 12.13.0 with asdf install nodejs 12.13.0 I receive /Users/john.doe/.asdf/plugins/nodejs/bin/install: line 52: ASDF_DOWNLOAD_PATH: u

ElasticSearch can't get multiple suggestor values from the same document

Can you help me please? I have a problem with Completion Suggester in ElasticSearch Example: I have this mapping : PUT music { "mappings": { "properties":

Not able to get data (node.js) from my client (react.js)

I'm not able to retrieve the data I'm sending from the client to the server. My react code is the following: axios.post('http://localhost:5000/post-entry', { da

decrease number server making with express put method

I am trying to decrease the quantity, which I have to change on mongodb database, also I need to show it in body. I set a button called delivered which will de

NodeJS MySQL DB connection fail

thank you in advance for the help. I am using nodejs v16.13.1 and mysql 5.7.37-cll-lve. my nodejs app is currently on my local machine and my mysql db is on a r

Getting "Failed - File incomplete" in Chrome when downloading file from MongoDB

My JavaScript application allows users to download a file. The page shows a clickable link to the file. The file is stored in MongoDB. When I click on the link

twilio error "accountSid must start with AC"

const express = require("express"); const app = express(); const PORT = 3000; require("dotenv").config(); const accountSid = process.env.TWILIO_ACCOUNT_SID; con

Function stops without any logs in firebase (sometimes works well.. sometimes partly) - confused

Can you please share your thoughts or experience why this can happen: I have a folder on firebase cloud with a bunch of images (jpeg, png). It can contain from

How do I insert ThreeJS objects into Vue components? I am currently using Vue 3

How should I start using ThreeJS objects in Vue components? I was wondering whether someone could help me write a minimal working example of using the ArrowHelp