nodejs-server Questions

6

Solved

I'm trying to create some envrioment variables but when I create the file and run the server the seem to be undefined. I'm using nodemon. I have restarted my server and no luck. UPDATED .env MON...
Bicentennial asked 29/6, 2019 at 22:35

3

Solved

on nodejs documentation, the streams section says I can do fs.createReadStream(url || path). But, when I actually do that It tells me Error: ENOENT: no such file or directory. I just want to pipe t...
Latinize asked 31/1, 2021 at 6:22

4

Why I use NPM to install something, it will have this problem as below ERROR: npm is known not to run on Node.js v9.2.1 Node.js 9 is supported but the specific version you're running has a bug kno...
Fortune asked 3/2, 2020 at 7:56

4

I'm running the following code and it fails with the below error. AWS Code to list all objects inside a bucket. const http = require('http'); const host = '127.0.0.1'; const port = 5000; const path...

1

The file is being send to the nodejs server, but the upload.single gives an unexpected end of form error. How do i fix this? const upload = multer({ dest: "../../uploaded_images" }); rou...
Petr asked 3/6, 2022 at 7:10

2

We are using Vite for our frontend (inside SvelteKit) and it works nicely with creating SSR and frontend code. I especially like the prebundling of 3rd party packages via esbuild. Can someone tell ...
Dodson asked 11/10, 2021 at 9:0

2

Solved

We are using node module pm2 to run the server and capturing application logs. But as the traffic is very huge, huge data is getting stored in single file which are around more than 100Gb. Is there...
Xanthe asked 18/3, 2021 at 10:38

3

Solved

In this answer to the question - What is non-blocking or asynchronous I/O in Node.js? the description sounds no different from the event loop in vanilla js. Is there a difference between the two?...
Tryparsamide asked 2/12, 2021 at 14:10

2

Why we pass "app" in http.createServer(app) as we can also pass e.g : var app = require('./app') const http = require('http') const port = 3500 || process.env.PORT var server = http.createSe...
Divorcement asked 19/3, 2020 at 21:29

1

I have developed my project in the Nest JS framework. My main file in the src folder (src/main.ts). How can I start the server on my Digital Ocean server?
Unlookedfor asked 17/7, 2020 at 11:31

1

Solved

I have written lambda function that retrieve s3 Url whenever any new object created on s3 bucket. after retrieve s3Url this lambda make request to my server over REST Call. I observed cloud watche...

1

Solved

I am building a Node.js application and wanted to understand how concurrent requests are handled. I build a test server, where high CPU load is being simulated by waiting 10 seconds. To test the b...
Fitzgerald asked 8/7, 2019 at 18:58
1

© 2022 - 2024 — McMap. All rights reserved.