Questions tagged [nodejs-server]

405 questions
0
votes
1 answer

NODE.JS - Cannot find module '@hapi/boom'

I've been asked to create a super simple chatbot. I'm not a developer and I've never used node.js before. I found this simple demo on GitHub. I first ran npm install rcs-maap-bot as the main page says, pasted the code, ran it and I get this error.…
HeadTea
  • 89
  • 3
  • 10
0
votes
1 answer

Integrate Javascript with response

I have two Java scripts and i would like to merge them to get a output that can be treated as successful or failure. I'm not sure if this is the right direction or if i have got this completely wrong. Initial script is to git clone the repos const…
0
votes
1 answer

I had installed NODEjs on my system but when I check for nodejs version its is not giving me the version. What should I do?

$ sudo apt install nodejs Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: nodejs 1 upgraded, 0 newly installed, 0 to remove and 38 not upgraded. Need to get…
0
votes
1 answer

How to find custom logos from an image using nodejs

I am trying to find logo exists in an image or not, where i have create some logos list in png format. I have tried using opencv with nodejs. I have used OPENCV image-templating but I am not getting actual solutions. Example: I have some list of…
Somnath
  • 368
  • 2
  • 9
  • 22
0
votes
1 answer

Azure hosting of react js and node js application

I have react JS as my client side framework and Node JS express is my API backend services with SQL database on a home project. The app runs locally on my machine and I want to deploy the app in azure. I am not sure if I have to take 2 app services…
0
votes
1 answer

How to read POST image data in Nodejs using https module

Without using the Node.js express module, can I read two POST data variables using https module? I have this code working fine, only that I need to get two POST request values (license and photo) from the request. How do I extract two parts from the…
user5858
  • 1,082
  • 4
  • 39
  • 79
0
votes
0 answers

pins is not defined in Node.js

Working on node.js and mongodb app. I am having this issues in node.js apps, which is given below and i also added my index.ejs file and pin.js file: ReferenceError: /home/Documents/Build-A-Pinterest-Clone/views/pins/index.ejs:6 4|
bombom
  • 107
  • 2
  • 12
0
votes
0 answers

NodeJs project not working properly on Firebase hosting

I have developed a nodejs app that can convert HTTP/HTTPS links to torrents. It is working fine on localhost. When I upload it to firebase hosting. it's not working. It's even working on firebase localhost which I created using. How can i fix…
Savad
  • 1,240
  • 3
  • 21
  • 50
0
votes
1 answer

I always get the wrong response to the FIRST query result (it happens everytime i change my query)

i am doing server side programming using nodejs native. I wrote my code on server.js as given below: const express = require('express'); const https = require('https'); const bodyParser = require('body-parser'); const app = express();//initialized…
0
votes
1 answer

Why is Node.js npm so very slow on my Windows 10 computer

I just started following the tutorial for ReactJs using Node create-react-app. I am developing this in Visual Studio Code. When I run npm start, it is 3-5 minutes before the server is started up, and that seems very slow. I saw many tips on here…
0
votes
2 answers

How to Access the Current URL in NodeJS

I am using express with node.js. As such, I have the following: app.get('/callback', async function (req, res) { When a user is sent to the callback portion of my site, I am supposed to receive these req & res parameters. However, I am having an…
Rishab Jain
  • 193
  • 1
  • 3
  • 11
0
votes
0 answers

UnhandledPromiseRejectionWarning: Unhandled promise rejection error in windows but same code is working in Linux in Svelte

I am working in svelte and installed node modules using npm i. The same code is working in Linux. But, when I am trying to run the code on Windows I am getting the error shown in image. command to run: npm run…
mukesh
  • 1
  • 1
0
votes
0 answers

Why am I getting “TypeError: Cannot read property 'education' of null” when using newEdu or deleteEdu?

I've been trying to add new data to the education part of my database using this method Controller newUserEdu: async (req, res, next) => { const user = await User.findById(req.value.body.user) const newEdu = req.value.body; …
0
votes
1 answer

app crashed - waiting for file changes before starting in nodejs

/app/config/connection.js:14 if (err) throw err; ^ Error: connect ECONNREFUSED 127.0.0.1:3306 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1054:14) -------------------- at Protocol._enqueue…
Suresh
  • 51
  • 3
0
votes
0 answers

Flutter web state and server-side solutions with flutter

What is the current state of flutter for web in performance, specially on mobile? And can flutter run Nodejs code? I am fairly new to web development and was looking for a quick solution to compile my flutter apps to Web. I am using Firebase too, so…
Abdelrahman
  • 623
  • 7
  • 13