Category "node.js"

Why doesn't load data into my collection? mongodb

This is what appears on my mongo database: This is my app.post to insert the data, when I Submit it console.log the object with the dates but with create It ju

Jest test a function integrated with the ssh2-sftp-client library

I need to test a function that write a file from local path to remote path on an sftp machine using shh2-sftp-client library. my own function is the following:

npm error | Error: Cannot find module '@emotion/styled'

I am having an issue running my Node project. This issue did not exist yesterday. I can't think of anything that has changed since other than an update my OS di

Cancel File Upload: Multer, MongoDB

I can't seem to find any up-to-date answers on how to cancel a file upload using Mongo, NodeJS & Angular. I've only come across some tuttorials on how to de

A simple function to query MSSQL then close the connection for use in quick scripts

I have a script that I want to be able to schedule to run periodically, and query a DB, open a connection, execute a query, then close the connection. Trying to

Getting : npm WARN using --force Recommended protections disabled

I have an old Nuxt.js package that was developed in Node 12 and I want to use it now with Node 16 (the latest stable) but when I try to install my packages by n

Mocha testing Typescript source file: unable to import node modules

I have setup mocha to test typescript source files. I have successfully run a test on one file that only imported source files, but I'm seeing a failure running

How to check if an element exists on the page in Playwright.js

I am using playwright.js to write a script for https://target.com, and on the page where you submit shipping information, it will provide the option to use a sa

npm ERR_SOCKET_TIMEOUT error while installing create-react-app

While attempting to install create-react-app I'm getting the below ERR_SOCKET_TIMEOUT error. Creating a new React app in E:\New folder\my-app. Installing packa

How to get Realtime Logs in Elastic beanstalk like Heroku

I am moving from Heroku to Elastic Beanstalk as advised by some team I am working with. Now, when I was with heroku I got the benefit of real time logs as reque

chrome-aws-lambda + lighthouse always results in NO_SCREENSHOTS

I am trying to run Lighthouse via Puppeteer in a public.ecr.aws/lambda/nodejs Docker image using chrome-aws-lambda, and no matter what website I send to Lightho

How do I redirect to Google's consent page for Oauth2.0 in NodeJS Web app?

So I am creating an application with NodeJS and Express and some HTML. Basically after the user clicks login, it is supposed to make a GET request to the follow

How do I make a command in Discord bot in js that insert data in a database with Sequelize?

I'm working on a Discord bot using node.js modules and Sequelize to database, and I want to add a command that users type and the bot registers them in database

Npm not working (openSSL configuration error windows10x64)

I was getting this error whenever I try the npm command in powershell: **~ $ node -v v17.1.0 ~ $ npm -v OpenSSL configuration error: 74240000:error:80000003:sys

Unable to start fresh wiki.js install on my virtual server

I am trying to install the latest wiki.js version 2.5.170 on my standalone virtual machine running Centos 7 https://docs.requarks.io/install/linux Nodejs is als

Heroku Slug Size too large - nodejs

This is my first heroku app... and I see that my heroku slug size is 296MB... getting uncomfortably close to the fast 300MB boot time. This is a puppeteer app w

TypeError: (0 , _expressGraphql2.default) is not a function

Trying to create a server for my application using graphQL server, but keep getting the error below. I have tried debugging with similar issues on this site but

mongodb functions from node workers. Cannot read properties of undefined

Trying to save some data into mongodb via node workers. I tested my crud api and that wprks but when I make the call via node worker its coming up undefined. I

Pino logger custom destinations based on log level and logging on nodeJS console

Im having a hard time logging on Stdout and logging in file. Is there a way to log on stdout based on log level and at the same time log in file? As of now, my

request url return errno: -3, code: 'Z_DATA_ERROR'

I have used three lib to request url return same error URL:https://comment.bilibili.com/558679896.xml Axios Error: Error: incorrect header check at Zlib.