Questions tagged [node.js]
Node.js is an event-based, non-blocking, asynchronous I/O runtime that uses Google's V8 JavaScript engine and libuv library. It is used for developing applications that make heavy use of the ability to run JavaScript both on the client as well as on the server side and therefore benefit from the re-usability of code and the lack of context switching.
node.js
473,232
questions
0
votes
1
answer
13
views
How do I retrieve data from firestore
I am trying to create a chat app using react vite and firebase, i am using firestore to store and retrieve chats, i imported getFirestore from firebase/firestore, and passed it to the "db" ...
-2
votes
1
answer
19
views
Node Install Failed
npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path D:\Node Js\node_modules\.npm-Pmxry05m
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, mkdir 'D:\Node Js\node_modules\.npm-...
1
vote
1
answer
22
views
SyntaxError: Cannot use 'import.meta' outside a module
I'm using Jest and Supertest in my Node.js project. I also use ESM. After importing app.js to a example.test.js by ES modules and running npm test it throws an error.
error: FAIL tests/feedback.test....
1
vote
1
answer
13
views
How to delete getStream users efficiently
I've more than 1000 test users in both our database and getStream. Now the problem is when clean up test user, I'm able to delete 1000 users using query for our database but for stream i got stumbled.
...
0
votes
0
answers
15
views
MongoDb connected through React acting strange
import React, { useEffect, useState } from "react";
const ProductTitle = () => {
const [products, setProducts] = useState([{ _id: null, title: "" }]);
useEffect(() => {
...
0
votes
0
answers
13
views
Twilio voice call not working in expo react native (IOS)
I have integrated Twilio video call functionality in an expo application in react native. But when trying to integrate the voice it's not working. I have created the voice token from backend and ...
0
votes
0
answers
7
views
Printing to a Local Printer Hands-Free with node/express/react
I'm working on a project wherein I'd like to interface with a local printer through node. Everything I've read implies that this is impossible without some user interaction but I'm not sure if this ...
0
votes
1
answer
16
views
Update conflict in mongoose
I'm having an issue with updating a user's count field in MongoDB using Mongoose. Here is my schema and the code I'm using:
const user=new Schema({
username:String,
count:{
type:Number,...
-1
votes
0
answers
21
views
how do i make my bot functional and UX friendly bot? [closed]
This is the documentation: https://bot-whatsapp.netlify.app/docs/essential/
**This are my problems: **
I need users to access bot functions without starting flowInicio over and over again.
I need ...
0
votes
0
answers
18
views
Unable to poll for events using crossterm when spawned as a NodeJS child process: "Failed to initialize input reader"
I want to start a Rust terminal user interface I've made using crossterm which needs to handle keyboard input as a NodeJS child process. This works fine when I directly run the Rust program, but ...
0
votes
0
answers
24
views
Handling Varbinary Datatype in Node.JS API header with SQL Server
The API program didn't accept a varbinary format for my Node.JS API with a header key and varbinary value to authenticate my API request with Node.JS.
I've tried the straightforward approach by ...
0
votes
3
answers
42
views
Is string.indexOf() treated the same on Linux vs Windows?
I'm not an experienced JavaScript programmer. This is my first project using JS.
I'm developing on Linux and am at the point for my first release. Running the project on a Windows machine I came ...
0
votes
0
answers
18
views
How to add reward point in customers acount? [closed]
I am new to mern stake I want to add functionality of reward point but dont have idea how to use it. how it works and where I can get documentation of that functionality?
Have I use to mongoose mondel ...
0
votes
0
answers
8
views
Node App Deployment on Vercel giving a Not Found error
I'm trying to create a small hobby project to scrape real time stock prices using a simple NodeJS app.
I came across a couple of posts online saying Vercel would be a good platform to host a free tier ...
0
votes
1
answer
22
views
POST to mongoDB using axios & express
Struggling to get my data to post - I'm getting a 404 error. I've looked around the forum's and I think it has something to do with my route. I'm not sure I understand the routes aspect and how that ...