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
votes1
answer278
viewsHow to install non-terminal version 6.10.3 of nodejs
How do I install version 6.10.3 of nodejs in Ubuntu ? When do I install from the terminal (sudo apt-get update sudo apt-get install nodejs) it always installs version 4.7.2. Is there another way to…
-
0
votes3
answers2538
viewsHow to install nodemon globally?
I’m trying to install the nodemon globally, using: npm install nodemon --global It seems to install normally, with two warnings for an optional module: npm WARN optional SKIPPING OPTIONAL…
-
0
votes1
answer470
viewsError in Mongoose findOne
I’m getting Error: Invalid argument to findOne(): 'texto pesquisado' when executing the findOne mongoose: const User = mongoose.model('users', mySchema); const query - 'texto pesquisado';…
-
0
votes1
answer114
viewsNew project in MEAN Stack
Some time ago I read the book of MEAN of the House of the code, I made all the application and later I got to take course of Alura also of MEAN, however frameworks updated and I’m looking to do a…
-
0
votes1
answer115
viewsmodule.Exports mount an array with the api data
Well I’m having the following problem is I’m not getting it at all. Well I have a script config.js module.exports = { "adsense": { "bloco728x90": { "google_ad_client": "ca-pub-x", "google_ad_slot":…
-
0
votes3
answers4206
viewsHow to update a web page automatically right after an entry into the database? Use Nodejs?
This is the scenario: I have a central user, the manager of a hotel who will be monitoring 24 hours the status of the rooms in real time. The rooms have 3 status: 1-In use. 2-In maintenance…
node.jsasked 7 years, 12 months ago zwitterion 2,876 -
0
votes1
answer55
views2D drawing on the screen in Node without having to compile anything
Is there any Node module that allows printing on the screen (same bitmap), without having to compile anything?
-
0
votes1
answer2482
viewsHow to fix charset="UTF-8" in application nodejs within the socket.io
I have a chat app and I’m working with nodejs and socket.io. But I’m having trouble with name coding. The following name: Guilherme Loução is coming as: Guilherme Louã§. I have already saved the…
-
0
votes1
answer27
viewsProblems with encoding on static page
I have an html file sent from a Node.js server that can be accessed here who is having trouble with accentuation. It was working normally, however, after a small update, it got this problem. When I…
-
0
votes1
answer295
viewsres.redirect does not redirect in expressjs
I am the nodejs along with the expressjs and in the submission of a form a request is made on the server, which after processed, redirects the page: ... Post.create(doc, (err, post) => { if (err…
-
0
votes1
answer784
viewsWhich version of nodejs to install Cordova Ionic 2.0.0-beta.3
There are many versions of nodejs, I noticed that if I have the latest version of nodejs, I can’t install an earlier version of Ionic, I tried after installing nodejs is enters the terminal as…
-
0
votes0
answers419
viewsNodejs with Relational Database
Guys, I came on a two-way road and I don’t know which one to go on. The problem is this: I’m started developing an application that is basically similar to a social network, will have chat,…
-
0
votes1
answer1758
viewsQuery parameterized with Node.js and knex.js
In the code below I make a query and bring the contracts that are concluded or not, according to the parameter concluido (0 or 1). How do I bring this consultation all contracts when the parameter…
-
0
votes1
answer139
viewsTable with PUG in Nodejs
I am using PUG template in Nodejs and I am looking in the documentation how to assemble a table. I am checking in "pugjs.org", but apparently there is... Does anyone know how to mount a table with…
-
0
votes0
answers1562
viewsJavascript reporting and reporting
I would like to know a library for reporting in Javascript, and with Nodejs server. I’ve researched some things but nothing fits much to what I need, it can be either generating reports through the…
-
0
votes1
answer861
viewsAlternatives for PHP
And I really like C# so I took a look at ASP, but I didn’t like it much. I’ve handled Nodejs and I like it a lot. I wanted a language like PHP, where you can put the code inside the HTML and…
-
0
votes1
answer191
viewsProblem with empty Array with mysql and nodejs
This is the action that is activated by loading the page: In it I get the following array below. My problem is, when there is no record the ARRAY returns empty, I cannot pass a parameter to INPUT.…
-
0
votes1
answer924
viewsHow to make an alert in the browser, using Node.js
I am beginner in Node.js, I know that the main function of Node is not this, but I want to learn a little more about such an event, another doubt I also have is whether I can use common javascript…
-
0
votes0
answers111
viewsWhat is the difference between Get, Push, Post methods?
I wanted to know the difference between the 3 in Javascript, I had been told that both do the same thing but have different semantics. But they didn’t explain what.
-
0
votes2
answers1383
viewsAuthentication of user registration by email in Node.js
I am developing a user registration screen, and arose the need to authenticate the user registration by email, the procedure would be something like, when confirming the registration an email is…
-
0
votes1
answer85
viewsAPP nodejs: prevent logs in terminal window
I created an application in Nodejs with Express and when I put this application to run (with npm start), There are some logs appearing in the terminal window where I am connected to each page that I…
-
0
votes1
answer68
viewsSpawn play ENOENT Nodejs
I’m trying to use a library called steal: const Troubadour = require('troubadour'); const troubadour = new Troubadour('sox'); app.get('/playmusics', function(req, res){ troubadour.on('start', ()…
-
0
votes1
answer174
viewsHow to consume a Multipart form-data method with void method
How to consume a method Multipart/form-date of a web service made in java, by ajax or jquery? Below I leave as this the method: JAVA: @POST @Path("/aprovarCompra") @Consumes("multipart/form-data")…
-
0
votes0
answers68
viewsEncrypt images and videos via Node.js
I am developing an application with nw.js and need to protect images and videos that will be distributed with it, there is some way to do this with Node.js?
-
0
votes1
answer85
viewsStart Devtools with custom options in Electron
In my application I have a function developerMode() who makes the Devtools call function developerMode() { var r = confirm(lang.developerModeConfirm); if (r == true) {…
-
0
votes2
answers113
viewshow to direct a page synchronously at nodejs
good afternoon I own a page called index.js in the route folder of the express nodejs. when the pendingAprovals page is called I would like the index to call a webservice to send a JSON to the…
-
0
votes1
answer323
viewsProblem getting user data in the application’s localStorage
Guys I would like to implement a menu "my account" in my project, this menu should show the user data as name, email etc, I am using jwt and the logged in user data can be obtained in Localstorage…
-
0
votes1
answer145
viewsCordova + Ionic installation error using Node.js
In the attempt to install Cordova + Ionic using Node.js, the following error is occurring: npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program…
-
0
votes1
answer766
viewsDynamic routes with angular 2
I am developing an angular2 application and wanted to create dynamic routes, which would be generated from a .json.file. Searching I found the following code: import { Routes ,RouterModule } from…
-
0
votes1
answer786
viewsAngular 2 in production
Eai guys,I have an application in Angular 2 that I want to publish it on the site www.umbler.com hosting server but do not consig, have put on the server in Nodejs but does not work. I don’t know…
-
0
votes0
answers283
viewsproblem to install nodemon, how to solve?
hello, I’m learning Ode.js however, I want to install the nodemon, but it does not install, only it remains so how to fix? already searched on google and can not install…
node.jsasked 7 years, 1 month ago Felipe Marcelo 1 -
0
votes0
answers142
viewsSyntaxerror: Unexpected token (244:78) - Nodejs, Express, jade, mysql
I am developing a program and out of nowhere in creating a simple page appeared error below: The program is working everything but this page that appears this error: I’ve gone over all the lines and…
-
0
votes1
answer1610
viewsRecord app data developed with React-Native in a remote Postgresql database
Good I’m developing an application in React-Activate. In this application will basically have some forms to register information, but this information must be saved in a Postgresql bd which is…
-
0
votes0
answers307
viewsIs it possible to return a value within a callback without another callback?
Well, I have a function that returns a value for a callback, but I wanted it to return without that callback, this is possible? Function in question: function getProfile(id, fn) { var sql = "SELECT…
-
0
votes1
answer231
viewsMongodb - Filtering returns
would like to know how I can be filtering the results returned in my mongodb queries in this my scenario I will have to return the names of the sectors and the contacts relating to each sectors from…
-
0
votes1
answer184
viewsIs it possible to use Node.js in Cpanel?
I intend to make both an app and a website communicate with my database through Node.js. I wonder if any host as the simplest they possess Cpanel(godaddy) has support for Node.js or mongoDB.…
-
0
votes0
answers21
viewsConnection cluster for MS SQL Server
I need to create a Connection Cluster for MS SQL Server. Here’s an example I performed in Mysql: var mysql = require('mysql'); var db_cluster_config = require('./dbMysqlUtils').cluster_config; var…
-
0
votes1
answer165
viewsCapture my own number of followers
I’m trying to get a get of my follower number via Instagram API. I already own my clientId, mine userid and my accessToken. With the use of instafeed.js I can already access the feed. But whenever I…
-
0
votes1
answer813
viewsProblem loading static files on routes with nodejs / expressJS
Programming my first system I came across a little problem... I am creating a client system and changed the structure of the views folder as follows: /app /views /customers ejs customers. add ejs.…
-
0
votes3
answers950
viewsHow to use the Discod EMBED bot correctly
How is it possible to format the message the bot sends like this? I can even do it, but I can’t put divisions on the same line, and if possible there’s a way to put background in the division?…
node.jsasked 7 years ago Wladi Veras 379 -
0
votes1
answer67
viewsNode Create an API to validate Azure AD login
Does anyone know how I could create an API to validate login with Azure AD and return a token?
-
0
votes1
answer89
viewsHow to load multiple routes in Node.js in a . jade
Is there any way to load multiple routes within the same file .jade, for example: I may have a route /menu, another /header, another /clientes, when calling the route /clientes give a…
-
0
votes1
answer80
viewsError in separating responsibilities
On Node, I created the following template to represent my user: "use strict"; var Sequelize = require('sequelize'); module.exports = function() { return sequelize.define('user', { ID_USER: { type:…
-
0
votes0
answers44
viewsContainer Apache + Nodejs, how to create?
I climbed a container with Apache + PHP, however, I need to use the Laravel-mix, soon need the npm and nodejs. Everything works ok, however, at a certain point I saw that the container restarted,…
-
0
votes0
answers32
viewsError using SQL with javascript
I would like to know what is wrong with those lines, especially in the query, as it is not working: pool.query('SELECT * FROM `info` WHERE `id` = 1', function(err, row1) { var jogo = row1[0].jogo;…
-
0
votes1
answer176
viewsNode.js routes with Angular.js
I am starting now in development with Ode and came to me the following doubt: much is said about the mean stack, but how to map routes using Node and angular? Which one will I use to make the…
-
0
votes1
answer893
viewsNode JS and Mongodb - Return data from a model to a route
I’m new to Node JS + Mongodb and I’ve had a doubt for a couple of days that I couldn’t figure out how to solve it. My problem is this: I have a file of routes that make a call to a model, as in the…
-
0
votes1
answer255
viewsHow to use the Urlfetchapp class with Node.js
I’m trying to use a Google Apps Script class, but I’m having trouble finding information on how to use the classes in Apps Scripts and run in Ode. Ex: converter.js if (process.argv.length < 3) {…
-
0
votes1
answer651
viewsModule for Node Js that captures information from the Operating System and the computer
How to get using Node Js the use of processing, memory, load Average and operating system information? I know that in Java, for example, there is the library "Operatingsystemmxbean" would like an…
-
0
votes3
answers3693
viewsHow to build Ios with an IONIC project
Good afternoon, I’m on a project made in Ionic , nodejs and Mongodb. I have access to the code, which are in the BITBUCKET repository but I do not know how to create the project build in Xcode…