Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

node js

  1. S

    Node.JS Redirect

    I have some experience of using Node.js on a VPS but I am trying to set up an app on shared hosting. I can get it to respond when I access it via the URL but when I try to connect from a browser the request is being 301 redirected but I have no idea why. The techs on the shared hosting are...
  2. TheShanachie

    Node.JS Is there a better way to write this JS which is dependent on a Promise?

    In a current JS web application. I am currently rendering my pages with specific information from a MongoDB Atlas cluster. Unfortunately, I don't know enough about JS to fix a major issue. The current code queries the Database each time a page is rendered as far as I understand. This seems like...
  3. Cooldude100

    Node.JS Express js not working

    I made a server in express.js, Here is the code: var express = require('express'); var app = express(); app.get('/', (req, res) => { console.log('Ready, and in action!'); res.send(); }) app.listen(443); It won't send anything to the console. I am using the command prompt. Is there...
  4. Widusha Dheemantha

    Node.JS Can't Connect To MongoDB Atles

    in my case I upload the mongoes link from web to vs code & then I develop the module file. after that start the npm & start testing the inputs that I created in index.ejs file. when I click the submit button the information that I type on the input tag Is not on the mongoDB collection (in web)...
  5. P

    Node.JS The Best Techniques for Optimizing Node.js Servers

    Let's discuss the top-notch techniques to optimize Node.js servers for lightning-fast performance and scalability. Share your insights on caching, load balancing, and async I/O patterns. Don't forget to explore how to fine-tune your database queries for ultimate speed!
  6. T

    Node.JS node js sleep

    Hi, I deployed Node.js as a solution to return data from database for a React application. The live site works fine but Node.js seems to go to sleep when not in use after a few minutes. Once the site is "on" again - a page loaded (ex: homepage) which requires access to the database - Node.js...
  7. D

    Node.JS error gyp verb find Python Python is not set from command line or npm configuration error gyp verb find Python Python is not set from environment vari

    Details In Angular15 when we try to install "NPM i" we are getting below error. We installed Python 3.1.0 in our system then also it was not resolved. If we used "--legacy-peer-deps" along with "NPM i " it is installing. But in server build getting failed. So client asking to fix this. Error...
  8. S

    Node.JS I can't do npm install, it shows me this error.

    npm ERR! code ERR_OSSL_UNSUPPORTED npm ERR! error:1E08010C:DECODER routines::unsupported npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Urvah\AppData\Local\npm-cache\_logs\2023-02-16T12_51_27_274Z-debug-0.log This is the error. I can't install anything. Help!
  9. T

    JavaScript Introduction to the MERN Stack and Stripe Integration for Beginners: Part 1

    View: https://www.youtube.com/watch?v=XaibDAWnG0E
  10. J

    Node.JS How do I connect BTCPay Greenfield api to my MERN app

    I am trying to make an app that uses btcpay server Greenfield api but I am not sure how I connect it to my MERN app
  11. N

    Node.JS Loop and handling errors Puppeteer

    Hi there! I am looking for a solution to automate my script to re-run in an infinite loop till the script is stopped, and also i am having difficulties to let the script continue after any error, it should just re-start the process. At current, if all goes well it will run for some time till i...
  12. iimadouu

    JavaScript how to filter the json response coming from axios request?

    hello, im trying to filter and organize a Json response from axios.get, im requesting a soccer standings table i ve succeded in returning the data but is bit messy, im using node express, axios, and cheerio as you can see on my code below this is my code: const express = require('express')...
  13. parvinder21

    Node.JS Error: Cannot find module 'puppeteer'

    const automation = require("puppeteer"); const fs = require("fs"); const automationConfiguration = { headless: false } async function runautomation() { const browser = await automation.launch(automationConfiguration) const page = await browser.newPage() const navigationPromise =...
  14. abidiziko99

    JavaScript Javascript / Node.js importing html file

    I'm making a node.js server which sends emails on demand. The variable "output" is what I want to send via email. When I use inline html it works fine, however I want to import a complete html file instead. const { EmailClient } = require("@azure/communication-email"); const connectionString =...
  15. malc_b

    Node.JS Checking for iframes

    I have some stuff I'm working on using node, express and ejs. It's ticking along alright. The basic premise is that the routes for pages all include certain navigation elements with the story element in the middle section. What I'm trying to do now is to let that middle section be loaded into an...
  16. U

    Node.JS Pannel with node.js

    Hello to all, I'm a beginner in node js and I could use some help. I want to scrap some data to display them on a local website. For the moment I have created a small script that allows me to retrieve my ip via a site. I would like to be able to display on a web page this result as well as...
Back
Top Bottom