Category "node.js"

Unable to publish scoped NPM package on internal Artifactory

i am trying to publish a simple (there is only a js file inside) scoped NPM package on my company's Artifactory. I followed all the documentation available both

error: missing FROM-clause entry for table "x" Express

Trying to fix up my first node/express GET request. Having some trouble getting it working though. I currently am getting this error: error: missing FROM-clause

Safe electron app that makes requests to another server web application

I want to create an electron app that supports sns features(upload videos, photos, basically share some info (nothing personal). I know that electron only has a

SyntaxError: Unexpected token '||=' on import of pdfjs-dist

Trying to use pdfjs-dist in node js app Steps: created new node js app (module) then:- npm i pdfjs-dist package.json is:- "name": "testpdf", "version": "1.0.

How to fill all fields using puppeteer?

I use page.type to fill a field using puppeteer. If you have a multiple selector, then it will fill the first found field. My goal is to fill all inputs that ma

npm install -g @ionic/cli Unexpected token '.'

I want to install ionic 6 on my system. I have installed multiple versions of npm on my system using nvm . nvm ls D:\<user_name>\Projects\Ionic-6>nvm l

reactive-native cli error creating new projects "Android project not found."

When I try to run a react native project with the command react-native run-android the following exception is a displayed: "Android project not found. Are you

Try to generat nftr art Got this errore code: 'ERR_DLOPEN_FAILED' whent runing node index.js

PS C:\Users\dell\Desktop\HashLips\hashlips_art_engine-1.1.2_patch_v1> node index .js internal/modules/cjs/loader.js:1144 return process.dlopen(module, path.t

Return excel file from AWS Lambda function

I'm trying to return an excel file through Lambda. It succeeded, but the content is only the base64 encoded string of the file. Here's the code: const xl = requ

Upgraded to macOS Monterey 12.3.1 and `playwright + electron` stopped working - how do I fix it?

We launch our Electron-based app like so: test.beforeAll(async() => { electronApp = await _electron.launch({ args: [ path.join(__dirname

Pino-tee logs twice on other logs

References: https://github.com/pinojs/pino-tee I have two logs, info.log and error.log but the thing is, when I go to info.log, the log for error.log is there S

Swagger-ui-express swagger-JsDoc error 😱 Could not render n, see the console. in NodeJS app

I have a NodeJs app using swagger-ui-express swaggerJsDoc. When expand schemas as swagger define encountered error below. What should I do ? Error server.js swa

How to retrieve all rows using Azure Table Storage bindings for Azure Functions

I am using azure table storage bindings as described here https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-table-input?tabs=in-

How to 'join' or populate an array

Here is my very basic product schema: const productSchema = new Schema({ productName: { type: String, required: true, }, productDescription: {

Unexpected token ')' in D:\Mridul\Codes\js\API BASED\Anime Quote\views\info.ejs while compiling ejs

So I want to display MongoDB data in HTML so I used the EJS template but this is the error it is showing . I can't seem to figure out where the problem is, IS i

Express routes working with url params but not with specific sub routes

I'm building an API for my web app and I was able to successfully send requests to the routes in Post.js when they only had url params. But when I try to create

Module not found: Error: Package path ./v4 is not exported from package

I was building a react project but when I tried to run it. It showed the following error: Module not found: Error: Package path ./v4 is not exported from packa

i am using node cron for running jobs , i will this run every day including saturday and sunday '00 00 22 * * *'

i am using node cron for running jobs , i am confused will this pattern run every day including Saturday and Sunday as well '00 00 22 * * *'

Content not from webpack is served from /opt/app/public directory

i have a simple application with react and typescript that display hello world on localhost:8080. When i run my application on command line it works and i see t

cls-hooked: AssertionError [ERR_ASSERTION]: context not currently entered; can't exit

I'm currently deploying an express app to Heroku. I'm using cls-hooked to set request ids for each request. This works perfectly on my local machine and inside