Category "node.js"

Nodejs concatenating numbers as a string

This function is triggered on button click nextPage() { this.tweets = [] this.$route.query.page += 1 this.getTweets() }, What it's doing is resetting arr

code ERESOLVE when running the command npm install

I'm new to ReactJS and tried to run a code in VS Code using npm install command and this error pops up: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resol

Mock 'S3' feature of 'aws-sdk' (nodeJS and Jest)

I need to test a file in charge of retrieving data from S3 through the 'aws-sdk' (nodeJs + Jest). The file is: const AWS = require('aws-sdk'); let S3 = null;

How can I pass in an unknown amount of objects in a dynamic react form to my sql database?

I'm having trouble connecting 0-6 dynamically rendered form elements to the backend/database using react. Perhaps the way I'm attempting to do this is not suppo

Using Auth0 with NestJS on gRPC Methods

I am trying to implement NestJS Guards for Authentication and Authorization to my gRPC Services, which are implemented in NestJS. @GrpcMethod(USER_SERVICE_NAME,

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