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
answers26
viewsGrunt build error
I do not understand very well the reason for this error and how to solve it npm ERR! Linux 3.13.0-116-generic npm ERR! argv "/home/fmessias/.nvm/versions/node/v7.9.0/bin/node"…
-
0
votes1
answer43
viewsIs it possible to visually display another value for a certain value in the bank?
I’m doing a Todo and I need to set priority (urgent, high, medium and low). But I am only able to define through integer (1 is urgent, 2 is high etc) The question is: is it possible to show another…
angularjs node.js web-service mongodb nosqlasked 6 years, 11 months ago Grande Guerreiro Daileon 38 -
0
votes1
answer73
viewsTCP Server + Web Server in the same application
Next guys, I have some ideas for a project and I’m having some questions ... 1º Is it possible to create a TCP Server that will handle the connection with the Client along with a Web Server using…
-
0
votes0
answers529
viewsnpm | Installation dependency failure
My system: - Windows 10 - Bash on Ubuntu on Windows I’m new to bash usage. I installed nodejs, followed by npm and finally grunt. Everything worked well. I used the grunt no problem, but I started…
-
0
votes0
answers83
viewsPage is not rendering
I am configuring a web application using Keystone JS. I set up some Routes, and views, and also already set up a "virtual store" structure to add and exlcuir sightseeing tours. The problem, that due…
-
0
votes1
answer329
viewsHow to show data in ascending order mongoosejs + expressjs
Can you help me? I am trying to show my Database records in ascending order, but it is an object within another and I want to organize by cashout follows the photo of my DB. I am using the Mongoose…
-
0
votes0
answers562
viewsHow to take the value of one function within another
Guys I’m not getting the value of "var stop" to use elsewhere just appears on the console. Can someone help me return please?! Thank you!! game = require('./../model/Game.model')()// Aqui busco meu…
-
0
votes1
answer115
viewsQuery to catch date difference
I wonder how I can make a query of this type in Mongodb with date difference and picking the last record in a date range. SELECT *, DATEDIFF(NOW(),DATAHORA) AS DIAS FROM TBLTRANSFERS WHERE…
-
0
votes1
answer468
viewsFunction call in external file in Nodejs
I previously had a single file called aaa.js where there was the following code part below, and separated into parts: const callback = (err, data, res) => { if (err) return console.log('ERRO: ',…
-
0
votes1
answer290
viewsSequelize Migrate - Error: Typeerror: defineCall is not a Function
Hello I’m doing a simple championship API, I used the Sequelize as ORM for my database. I created the Arbitro table that had only the NAME field and did not have the CPF field in the table. I had to…
node.js postgresql migrations sequelize-jsasked 7 years, 4 months ago Leonardo Nascimento Cintra 175 -
0
votes0
answers292
viewsError doing npm install on my Ionic project
When I give the npm install command in the project it shows me this error, which can be ? bash-3.2$ npm install npm ERR! code ETARGET npm ERR! notarget No compatible version found:…
-
0
votes2
answers452
viewsBody NULL Nodejs
I’m starting with nodejs, but whenever I try to send (email and password) to the API via POST, the entered values are returned as NULL. router.post("/users", function(req, res){…
-
0
votes1
answer316
viewsHow to deploy Angular and Java in Heroku?
I have a web application in Angularjs that communicates with a backend in Java. I would like a hosting and I ended up seeing about Heroku. Is it possible for me to buy a single plan (for example,…
-
0
votes0
answers26
viewsIs there an environment for Nodejs cloud development?
Study at a college that has not yet homologous nodejs in the equipment. However, where can I find a cloud environment to develop my nodejs and Expression applications ?
-
0
votes2
answers319
viewsI can’t connect Mongodb to Node
I’m trying to make a page on which will have a written form Nome and Comentário, when the person fills in the name and the comment will appear under the form. Only that is giving error. Down here is…
-
0
votes1
answer204
viewsApplication . NET C# Nodejs express style
But for a few features I would like my project to respond to some simple HTTP Rest requests. As the project will handle COM+ and more, I will do it in C#. The point is, I don’t want to have to deal…
-
0
votes1
answer750
viewsTypeerror: Uri.indexof is not a Function
I am making a Crawler using Node.js and mongodb to save the information in the bank and I have the following code: var request = require('request'); var cheerio = require('cheerio'); var save =…
-
0
votes1
answer88
viewsFailure to install Chart.js
I am trying to install Chart.js in my eclipse project but every time I run the installation code error appears. npm install chart.js --save…
-
0
votes0
answers295
viewsExtension for Chrome + Nodejs
I would like tips to develop extensions for the Chorme(and other browsers) using Nodesjs. Because Nodejs? Well I would like to give some protection to my JS codes so that they are not visible or…
-
0
votes1
answer72
viewsDoubt about Index for Boolean Fields - Mongodb
I have documents with boolean fields in a mongo collection. To index these fields, is it better that their values are Number (0 or 1) or does it make a difference if they are Boolean? I have…
-
0
votes1
answer630
viewsRedirect URL in Nodejs
I am trying to redirect my login to a new site after the user validation function. After redirecting the url in Browse is from the url where the login was:…
-
0
votes3
answers430
viewsAssign return of findOne to a global variable Node Node.js
I couldn’t do that assignment, so is there anything missing? global.pedido = db.collection('configuracoes').findOne({ parametro: "pedido_num"})
-
0
votes1
answer788
viewsUnhandledpromiserejectionwarning: I believe it is after mongodb research
I believe that this problem is in this part of the code, funny that below used a code very similar but does not give the error: UNSOnline.post('/resetpass', (req, res) => {…
-
0
votes0
answers481
viewsList amount of files in a folder
I am working on a small system and I am using web for N reasons, easy to customize, work with full screen (F11), everything is flowing fine. I arrived in a part that I need to list the number of…
-
0
votes1
answer135
viewsI can’t use Firebase Hosting
When I try to host using "firebase init" and then choose the project and the host, I apply the "firebase deploy" but when I open the link appears this screen: what should I do?…
-
0
votes2
answers397
viewsbodyParser is not set error in Node.js
I am trying to create an HTTP server that you will use bodyParser() to request the part of middleware before the handlers. But when trying to use it in the code, indicates error saying that it is…
-
0
votes1
answer288
viewsPlace EJS files in the Service Worker cache
I wonder how I can curl in the Service Worker the files of . EJS since they are not rendered by the browser, more by the server and only after sent to the browser the . HTML respective.…
-
0
votes0
answers197
viewsFTP - Check for file in nodejs
I have a folder on a server, accessible via FTP. I would like to know a form in NODEJS where passing the file name, it returns me if the file exists or not. I found an implementation in DELPHI -…
-
0
votes1
answer36
viewsHow to create a file if it doesn’t exist?
Hello, I am making an application that will have data in JSON and would like to know, how to create a file if it does not exist? I am using FS. From now on, thank you.
-
0
votes1
answer166
viewsI am unable to edit in CRUD - Nodejs + Express + Mongodb
next: I literally started working with Nodejs + Express + Mongodb today and as an exercise I started with the famous CRUD (Create, Read, Update, Delete). I managed to do almost everything except the…
-
0
votes1
answer33
viewsHow to use items of various components in only one at angular4
I have a template that forms a registration form, it is separated into three "User, Note, Address" Components the three are being rendered, but I cannot access their content when submitting the…
-
0
votes3
answers834
viewssending email with nodemailer
I am making an application with Angularjs and have a contact form with name, email, phone and message. I need the contents of this form to go to the client’s email and I’m trying to use the…
-
0
votes1
answer250
viewsAngular: Module name is not loaded in the ngApp html tag
I’m doing a basic angular test that reads a simple json and displays on the screen. My problem is that when I put the module name in the ng-app tag, all functions of the angular stop working.…
-
0
votes0
answers56
viewsERR_CONNECTION_RESET When I upload large image to Nodejs
Good morning, I’m having a problem when I try to send big image with Ode, formidable use app.post('/upload/image', (req, res, next) => { var form = new formidable.Incomingform(); form.multiples =…
-
0
votes1
answer104
viewsrequesting all main node_modules files
I have installed some dependencies with the NPM, these dependencies are basic, like bootstrap, animatecss and others... Anyway, I would like to know how I do to call these dependencies in a simple…
-
0
votes1
answer84
viewsElectron - Typeerror var.on is not a Function
Following standard primary structure models offered by Electron documentation (https://electronjs.org/docs/tutorial/quick-start), found errors according to the development of an application. Showing…
-
0
votes1
answer28
viewsFor Node service from within js
Well I need to finish a Node process from within js itself. What happens is that I have a cron that executes a command node meu_arquivo.js and accurate within this meu_arquivo.js end the Node so…
-
0
votes0
answers46
viewsgetTime() returns unixtme different from date
I have a date string that when I assign this string to a date and later I’ll take the getTime of it, if the application is running on different machines the returned unixtime comes with a few…
-
0
votes1
answer3794
viewsHow do I get Nodejs running as a service?
I was doing some research around here and found only solutions for linux, let the server run by dos it’s not safe, because at any time there could be a fall. The question is, is there any method to…
-
0
votes0
answers231
views -
0
votes2
answers326
viewsnodejs, jsPDF and Windows
I am unable to install jsPDF in my nodejs with npm. I have npm install node-jspdf to work with nodejs, but does not install because it gives problem when running the file install.sh. Even specifying…
-
0
votes0
answers475
viewsAccent and HTML problems with Node.js
Guys, I’m creating a Microsoft Bot for Messenger, but I’m having problems with the emphasis on the texts and the html is being displayed in the reply. Code: switch (session.message.text) { case…
-
0
votes1
answer2759
viewsHow to close Node.js in the application?
How do I stop a Node.JS application? For example, in PHP, we have something like this: exit; Or: die('Mensagem.'); Is there any way to stop the Node.js application this way (or similar), without…
node.jsasked 6 years, 7 months ago Luiz Felipe 32,886 -
0
votes1
answer526
viewsSetar localStorage in different Omains
I have three applications: 1. Login (which runs on door 8080) with jQuery very simple 2. API (wheel at port 4000) with Nodejs 3. Web (rotating at port 4200) with Angular When I am logged in and…
-
0
votes1
answer128
viewsI cannot uninstall duplicate Node on virtual machine
I am programming in Codeanywhere and I have a virtual machine with Linux, where I installed the latest version of Node and NPM, but when I start the server, this version error appears, and there…
-
0
votes0
answers27
viewsAuthentication with js node and passports using GCF
I wonder if there is a way to authenticate requests for cloud functions on google using nodejs and passport, whenever I want to know what it takes to verify that I am authenticated and return to the…
-
0
votes1
answer1833
viewsHow to add parameter in nodejs
am beginner in dev and would like to know how to pass a parameter via function. For example: function hello(name) { console.log("hello " + name); } hello("Fulano"); If I roll Node hello, he will…
-
0
votes0
answers23
viewscheckout in svn Node/Gulp project
Hello, would anyone know how to check out a svn project with Node/Gulp? Currently I have this routine that copies my project folder and creates a new one so that I can minify the files and then go…
-
0
votes1
answer28
viewsMongodb on air at AWS
I need a help, I did not find anything practical and exact in google, I have a backend with Node and using Mongoose, and I can run site quietly, because in CMD I run the command 'mongod', and my…
-
0
votes1
answer679
viewspath must be a string or Buffer in the console: Node.js (Electron)
I am developing an application on Electron, and one of my functions is to backup a json. When I open the ('fs') and saved the file, I get no error on the console. When opening the dialog box and…