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
-
-3
votes1
answer101
viewsProblem with bodyParser - Does not take req.body even with bodyparser installed and configured
I’m trying to create my first REST MVC API with Nodejs and Express, only I can’t get the req.body information, bodyParser is configured. I’ve researched everything and I can’t find the problem,…
-
-3
votes1
answer75
viewsReceipt of findAll() in the nodejs
I’m having a huge doubt here. router.post('/login', (req,res)=>{ Usuario.findAll({where: {email: req.body.email}}).then((x)=>{ console.log(x.email) }) }) Result of 'console.log(x.email)' is…
node.jsasked 4 years, 1 month ago Joao Marcos 183 -
-3
votes1
answer253
viewsHow do I display this image on my React site?
I created a Rest API to return an image of my Amazon S3 Bucket. but the image came in a strange format and I can’t see it on my page. The strange thing is that when I perform a get on Postman the…
-
-3
votes1
answer24
viewsEquivalent of res.download express in restify
I would like to send a file to the browser to download In express I do so: app.get('/apk', (req, res) => { res.contentType('application/vnd.android.package-archive');…
-
-3
votes1
answer22
viewserror while running npx React-Native run-android command
When I execute npx react-native run-android, which is to start the Android emulator, returns me the following error: Command run-android unrecognized. Make sure that you have run npm install and…
-
-3
votes1
answer43
viewsHow to insert emojis into Mysql database and return the same in current service
I have a messaging system. Where the client (Whatsapp) sends an emoji, and my system receives the emoji. But when the page is updated and searches the emoji in the BD to display, the emoji is…
-
-3
votes2
answers130
viewsWhy are you making a mistake when executing the code via Node?
I’m having trouble running a specific code through Vscode. I have Node v4.2.6 installed and NPM v3.5.2 and when I will run via Node the code: Let pais = 'Brazil' console.log(any) Gives an error…
-
-3
votes0
answers13
viewsHow to install nodejs and npm in Ubuntu 20.4 lts using wls2?
I am using Ubuntu 20.4 lts in wsl2 , I installed the nodejs and now my terminal is like this ? c/Users/Diogo Malfatti via v14.17.5 that’s normal ?
-
-3
votes1
answer125
viewslogin with multiple angular access
my problem is the following I am trying to put my login with various levels of access as if it is level 1 enters as super administrator if it is 2 enters as administrator and if it is 3 enters as…
-
-3
votes1
answer133
viewsEvery time I give in There’s a mistake
I am programming a BOT for Discord and I cannot resolve the error below: > SyntaxError: Unexpected end of input > at wrapSafe (internal/modules/cjs/loader.js:1072:16) > at Module._compile…
-
-3
votes1
answer274
viewsNode js does not render the page’s css style
I ran the Node on a screen I had done in CSS and HTML with Bootstrap and does not load the styles. Failed to load Resource: the server responded with a status of 404 (Not Found) * Refused to apply…
-
-3
votes1
answer94
viewsRecover key value added in formData in backend
Guys I have the following request on frontend formData.append("file", this.file); formData.append("name", "test"); axios .post(`${baseApiUrl}/exame`, formData) In the backend I can recover the value…
-
-3
votes1
answer170
viewsHow to take the third value of an object array
First of all, I’ve already researched about, but I couldn’t, at least not in a simple way and it was supposed to work. Well I have a variable that contains this following array when I give a console…
-
-3
votes1
answer49
viewsI cannot find the error in this simple issue of javascript programming in which I need to check how many times the letter "o" appears in the sentence
var frase = "The Lord of The Rings"; var letra = "o"; function vezesLetraAparece(frase, letra) { var resultado = 0; var indice; for…
-
-3
votes2
answers48
viewsFunction does not enter useEffect
I have this little project to make a beast clone of Linktree with Ode, but I have a boring problem. The default function simply does not enter useEffect, which is where I call the existing Trees.…
-
-3
votes2
answers48
viewsES2015 syntax error
I developed an npm package using es2015 preset in local environment worked very well because I was running Babel-Node index.js. When I posted it on npm and installed in a project to test. Using it…
-
-3
votes1
answer50
viewsNot falling in the if according to the number being higher or lower
The program I want to create should return an array with the number of records reached from a list of scores and the number of the position of the lowest score, respectively. However, it returns…
-
-4
votes1
answer152
viewsHow JSON works in a project
Hello, I’ve been asking many questions, which seem basic, but causes me confusion, so better ask, rs. I would like to know how the . json file works in a project, what it does. Thank you!…
-
-4
votes1
answer67
viewsLanguage to develop a live system
I am interested in the systems of live ex, facebook;youtube among others offers these services, in which language this is done, where I begin to study? Basically I want to access the camera of a…
-
-4
votes1
answer53
viewsIs it possible to consume an API with express?
I have a problem, I Wanted to create an API with express to consume Another API, but I don’t know how to do it ... Could you help me?
-
-4
votes2
answers113
viewsInstallation problems with Node.js
Whenever I try to install Node this message appears. Can anyone help me? Before I already had Node installed, but I tried to download and install again. That’s because I wanted to install Angular…
-
-4
votes0
answers22
viewsCan someone help me do this exercise
Input the following algorithm, you should take the current date and do minus the input of the date you were born (your birthday), you should print your current age using console.log(`...) (example…
-
-4
votes1
answer94
viewsWhy does the vowel function not return the right value?
I’m trying to do a function that reads a txt file and returns the number of vowels in the file. const fs = require('fs'); let texto = "Teste";//tem 2 vogais fs.writeFile("teste.txt",texto…
-
-4
votes1
answer69
viewsHow do I bring an HTML code stored in the Mysql database and print it on screen using MVC Express Node.js Project?
I want to print this code that is stored in the database in my project. And this is coming up instead of the code Here is the DAO providing the database information Here is the CONTROLLER that makes…
-
-4
votes1
answer54
viewsAccess a key in json
So. I’m working with the Youtube api to give GET the number of subscribers on a channel. All right. json gets to the code, my only problem is trying to get the value of the key subscriberCount. The…
-
-4
votes1
answer294
viewsReact Hook "useState" is called in Function
Good evening, I performed a CRUD project with Node, React and Mysql, but when trying to create routes in front-end, is generating the error: React Hook "useState" is called in Function "Register"…
-
-4
votes1
answer55
viewsCompare object array and delete repeat
I need to make a method where I receive from the frontend an array of objects, and compare with the array of objects q have in the database, so I perform the query in the database that is data1 and…
-
-5
votes2
answers463
viewsCannot find module 'body-parser'
Node code shows this error:
-
-5
votes1
answer104
viewsVersion conflict errors when running Angular 4.2 project
I took a project in Angular for maintenance, but it’s in the version of Angular CLI 4.2 My system is with the versions of Node, Typescript and Angular cli in the following versions: Angular CLI:…