Most voted "node.js" questions
Node.js (or commonly Node) is a Javascript Runtime created with Chrome’s Javascript V8 engine. It allows you to run Javascript code without the need for a browser, raising the privileges to those found in other desktop languages. It is a technology strongly focused on non-blocking programming of I/O operations, which makes it very efficient for these operations.
Learn more…2,679 questions
Sort by count of
-
0
votes0
answers9
viewsAngular + Nodejs Problem making change in product registration (update)
Good Morning, I’m trying to solve a problem but I’m not getting ...please I need help: When trying to change a product registration, in Angular I get the API status 202 and the record is not saved…
-
0
votes0
answers20
viewsMy music Discord bot can’t resume the song when it’s been paused
I am using ytdl-core and when I try to run the Dispatcher.resume() command nothing happens. I searched in several places on the net and did not find a solution. that’s why I’m here asking for help.…
-
0
votes1
answer24
viewsIn a small application would it be a valid option to use 'Quick.db' or would this cause future problems?
I am programming an API for use in a small Windows application and I had some questions when it came to implementing the API. When choosing the database to use in my application, I found a problem…
-
0
votes0
answers33
viewsProblems in ordering a sub-sub-association - Sequelize
I wanted to order a sub-sub-association by ASC "orderMeta", but for some reason I tried to take a look at the documentation and I can’t, I put part of my code. orderMeta is found in the association…
-
0
votes1
answer35
viewsError installing packages with npm Node.Js
** gyp ERR!find Python gyp ERR!find Python Python is not set from command line or npm configuration gyp ERR!find Python Python is not set from environment variable PYTHON gyp ERR!find Python…
-
0
votes0
answers14
viewsHow to pass the value of a client variable to a Node.JS server?
I am developing an application that will need to replace an XML via FS, and all the contents of that XML is stored in a variable that is created by JS in the client after pressing a button. I need…
-
0
votes0
answers10
viewsStream files in express request
Iae dev’s. I need a way to get the file stream from the request to send to google drive. I can send the files that are in the server folder, but I wanted to send directly from the request without…
node.jsasked 3 years, 2 months ago Ricardo Bierhals 1 -
0
votes0
answers9
viewsIs there any way to use EJS variables with the express "redirect" method instead of render?
Follow the example of an html page (index.ejs) with a message written "Password check" and a form with an input and a button. I want that, when filling this input with a password and making the…
-
0
votes0
answers21
viewsHow to search Array objects within the Spreadsheet of Google Apps Script and compare with another spreadsheet?
I created a code where the number of Arrays is variable within an order control sheet! And I need to take the objects of this variable spreadsheet and check if the objects (product name) match with…
javascript node.js functional-programming google-app-engineasked 3 years, 2 months ago Gabriel Teixeira 1 -
0
votes1
answer23
viewsUpdate array specific positions using mongodb with or without Mongoose!
I have the following situation! const meuModel = new mongoose.Schema({ nome: { type: String, required: [true, 'Nome'] }, links:{type : Array,}, }) Links is an array of objects! links [{url:link,…
-
0
votes0
answers24
viewsSave Array to Mysql using Nodejs
I have a form I’m making with Vuejs and Nodejs to the Back-End. I have a checkbox that gives me a value in Array, and wanted to save these values in the database, and when I try to save, it error…
-
0
votes2
answers56
viewsAccess-Control-Allow-Origin error with Nodejs and Reactjs application
I’m developing a real-time chat application, using Reactjs on the front end and Node.js on the back end. I have configured the Node server with Socket.io for the application. When entering the chat…
-
0
votes0
answers26
viewsHeroku Nodejs "Cannot GET"
I made a CRUD with Nodejs, Express, Handlebars and Mongodb - Works great in development, but when I try to make the Deploy in Heroku from the continuous error "Cannot GET /". I’ve researched a lot…
-
0
votes1
answer24
viewsError 'Typeerror: Cannot read Property 'room' of Undefined'
I’m developing a real-time chat application, using Reactjs on the front end and Node.js on the back end. I configured the Node server with Socket.io for the application. When entering the chat page…
-
0
votes0
answers14
viewsJSON.stringify returns the JSON string, but when trying to send to a MYSQL BD it escapes backslash
I am trying to register a JSON String in Mysql, I get an array with URL’s after a .map on the return of a request to upload multiple images to AWS S3, I use JSON.stringify to leave the array in…
-
0
votes0
answers14
viewsTDD with Jest and sequelize - POSTGRES Migration error for SQLITE
I am implementing TDD with Jest in a Node with express application, my database is POSTGRES and I have several sequelize Migrations already configured, and for my test scenarios I am running these…
-
0
votes1
answer29
viewsRelationship 1:N mongoDB
I am creating a streaming application similar to Netflix and would like to know what would be the best way to treat "relationships" in Mongo. (I don’t know if using a bank in the QTS is the best…
-
0
votes0
answers63
viewsError: Objects are not Valid as a React Child (found: Object) If you Meant to render a Collection of Children, use an array Instead. nextjs/typescript
I have the following problem with nextjs/typescript I have a cart context where is giving the second message, I tried to change the types already tried to do several things but the error persists,…
-
0
votes0
answers32
viewsHow do I tidy up this list of values from an array?
I am chatting with Node.js and socket.io, I have an error in listing the values of an array, the array of users. I put a <ul></ul> with an id and nothing else. follow the prints below…
-
0
votes0
answers20
viewsCooldown Twitch chatbot help me. Node.JS
Talk personal, all right? I am trying to create a chatbox for my channel on Witch but I am going through some difficulties because I am a beginner in the subject. The bot is functional but if…
-
0
votes0
answers18
viewsProblem with CORS in Reactjs application
I checked on other questions but found no answer that fits my problem. I have a Reactjs application that is on my localhost:3000 and I need to post for my API that is on my localhost:4000. The…
-
0
votes0
answers18
viewsError with Helmet on express
I’m trying to use Helmet, but every time I add it to the code I get this error: and jquery and bootstrap don’t work When I take out the Elmet the errors disappear Code: // Importações…
-
0
votes0
answers18
viewsUse $in and $gte together - Mongodb
I am developing an order system(type Ifood - from deepweb haha) I have 2 models, one of requests(fields: user information and a subdocument with the products) and another of the products. When the…
-
0
votes0
answers12
viewsNodemailer does not send to different customers
Searching for user tickets and customizing a message for each one can be a value requirement for a customer I’m trying to do just that A loop to customize a message to a found user I have the…
-
0
votes0
answers24
viewsI want to pass JS variables to an EJS file, how can I do this?
I’ve been trying to chat, and the client’s username is on req.session client. And to show the user’s number in the corner of the screen, I need to take this user’s variable, for this, in index.js I…
-
0
votes0
answers21
viewsExpress error Handler does not work
I have an express server where the index is written as follows: import 'express-async-errors'; import express, { NextFunction, Request, Response } from 'express'; import { CelebrateError,…
-
0
votes0
answers13
viewsWhy does the sequelize id auto-increment even without adding the data?
Hello, I have a table that has[id, user, password, level] following these settings: id: { type:sequelize.INTEGER, primaryKey: true, autoIncrement: true, allowNull: false }, user: { type:…
-
0
votes0
answers17
viewsFunction to query value in the database and return boolean value
Person, good night! I am a beginner and I want to create a function that sees if the value exists in the database and return me true or false. I tried to do so but when printing the result of this…
-
0
votes0
answers11
viewsError Babel: Missing class properties Transform
I’m trying to run an application, Node and Babel/webpack, but when I run the application the application page is just loading and soon after appears the following error in the console. And the…
-
0
votes0
answers14
viewsSequelize Error: Sequelizedatabaseerror
Hello, I am building my application on Node and using postgres database. I come across the following error: SequelizeDatabaseError: column \"zipcode\" of relation \"users\" does not exist" My model…
-
0
votes0
answers13
viewsSempra gives error when trying to upload a Nodejs application in Heroku
When executing the command: git push heroku master LOG: -----> Build failed We're sorry this build is failing! You can troubleshoot common issues here:…
-
0
votes0
answers11
viewsError: connect ETIMEDOUT, how to deal with this error?
I am mounting a script to download several images that are in an array, but after the script download some images it is interrupted and returns the error: events.js:377 throw er; // Unhandled…
-
0
votes0
answers10
viewsNot operator does not work on typeorm
I am using typeorm in my Ode app and mongodb database. I have only one collection called "users" and have a route to get all users except me. So, here’s my code: const foundUsers = await…
-
0
votes0
answers20
viewsAxios doing two post with only one request
Good afternoon! How are you? I am trying to register a user and his restaurant. So I first post the user data and on . then send me to the restaurant registration route. It makes the user’s…
-
-1
votes1
answer284
viewsCSS and JS in production of Nodejs + Expressjs + Socket.IO
I have a problem in a chat using Nodejs + Expressjs + Socket.IO. In local environment no problems happen. However, when I put it into production I am having problems with CSS’s and JS’s. I open the…
-
-1
votes1
answer317
viewsSecurity in consultations with Redis and Mongodb and Nodejs
In the relational model, when using SQL we have to pay attention to SQL Injection in our application. At Redis and Mongodb, what precautions should I take when building a database query? Remembering…
-
-1
votes1
answer102
viewsError query Mongoose
I have an appointment at Nodejs with Mongodb: filter:['abertos','cancelados']; schemas.chamados .find({STATUS_CHAMADO : {"$in" : filter}}) .exec(function(err, dados) { if(err) return callback(err);…
-
-1
votes1
answer591
viewsIs it possible to validate form on client and server only with Javascript?
In the particular case, I would like to create a form contact, with name, type of service (dropdown menu: webdesign, mobile), subject and message. I would also like to send this form with name, type…
-
-1
votes1
answer1914
viewsError Installing Ionic + Cordova
error messages when trying to install Ionic (npm install -g Cordova Ionic) Could someone help me? I am using Node 6.9. Thank you…
-
-1
votes1
answer152
viewsNode . /bin/www and nothing happens
I’m running a Rawler that I found on github, but it has no documentation, I created an Issue but I got no answer, and I’m very amateur, so maybe my doubt seems noobesca, but I would like help. Rodo…
-
-1
votes1
answer765
viewsUpdate in two MYSQL tables
How to update two tables, e.g.: first table users, would update only on senha, but on the table users_info would update cos fields, cidade, nascimento, sexo and etc. I can do it in one, but I wanted…
-
-1
votes1
answer1389
viewsHow to send sms using javascript or angular or Node.js
I need a method or api that send sms for free, it can be my same number from tim(I have text plan), I searched and just found some easy to use paid. I’m preparing for a university Ackathon and I…
-
-1
votes1
answer123
viewsMEAN STACK: Mongoose model blocks communication with my controller
Man controller does not send data to my router when mine Model is being exported in the application and I don’t know why it happens. controller js. var Model = require('../models/dado.js');…
-
-1
votes1
answer322
viewsWhat should I return in a REST API when the results are either true or false?
When I search for information in the database and this information is not returned (because it does not exist), what should I do? Fill a JSON object for GET return? And if it returns false? Can…
-
-1
votes1
answer206
viewsNodejs/npm/Cordova Development Environment on Linux Mint
I am currently using Linux Mint 18.2 KDE and I need to install the Cordova development environment as I am taking a course of it. However it has been more than two weeks that I am facing a very…
-
-1
votes1
answer588
viewsHow to update the page automatically when saving the project?
How to update the page automatically when saving the project to automate the work. To further automate the project as in Cordova projects.
-
-1
votes3
answers420
viewsIs it possible to create an application entirely with Javascript?
I am new in the area of development (by the way, I’m not in the area yet). I would like to know if it is possible to integrate back and front-end entirely by Javascript pure. Because I believe that…
-
-1
votes1
answer431
viewsuninstall Ionic projects
I created several projects for testing in Ionic, but now I need to delete it. I’ve researched a lot about this, but I couldn’t find any solution. Can someone help me?
-
-1
votes1
answer472
viewsFormat number with javascript
I have the following value: 7500 How do I get that value as a final result: 75.00, would like to use pure javascript only. Other examples: 76000 > 760.00 1600 > 16.00 I tried toFixed but it…
-
-1
votes1
answer1137
viewsHow to deploy an application in local Nodejs?
Talk personal, all right ? I’ve been searching the web but I got confused , I’m new to programming in Ode I made an application but I don’t know how to make the local deploy as a service for…