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
-
1
votes0
answers22
viewsStructuring data from DB
Hello fellow developers, I have a query that brings geographical areas that are contained in larger units of area; these larger units are received via params (id) and may be one or more, without…
-
1
votes0
answers28
viewsProblem with Primary Key ambiente_id instead of id in Typeorm
I am trying to create a table in the Mysql database, with Typeorm where the id is ambiente_id (nome da tabela + _ + id). Error: ER_WRONG_AUTO_KEY: Incorrect table Definition; there can be only one…
-
1
votes1
answer60
viewsENOBUFS error on Mongodb Nodejs
My database connectorMongo for nodejs, after a while running triggers the ENOBUFS error, knocking down all the tcp connections from the computer.. other apps claim tcp exhaustion.. however I could…
-
1
votes1
answer765
viewsTypeerror: Cannot destructure Property `name` of 'Undefined' or 'null'
I’m using jest along with supertest to test my application endpoints. The tests with the get requests are working, but the test with the post request is giving error: clientRoutes.test.js const…
-
1
votes2
answers61
viewsRequest for the Nodejs API
I’m trying to make an appointment of only 1 id and he returns to me an empty object. If I put localhost:8877/jogador/2, return on console is empty. If I put localhost:8877/jogador/1, he returns me…
-
1
votes0
answers123
viewsGenerating CSV file with Fast-csv in Nodejs
I need to write a CSV with data from a JSON, but I cannot generate the file with the data. I am using fast-csv Package. No error is reported during execution. Follows my code: async function…
-
1
votes1
answer35
viewsTiming problem in code execution
Speak people, I made a small script to resize some images, save locally and create a zip with each of them, however, when the program will create the zip, the image has not finished being processed…
-
1
votes1
answer37
viewsThe property this is returning Undefined in typescript
hello! I have this code typescript: import { InternalService } from './../services/InternalServices'; import { Request, Response } from "express"; class InternalController { internalService = new…
-
1
votes1
answer37
viewsCast from Object for an object created in Typescript
Problem Good afternoon! it is possible, in typescript, to give a cast of a object to a class I created? I need precisely to validate whether the fields exist or not, and if they are filled in…
-
1
votes0
answers18
viewsError Express: 'Error: Failed to lookup view "index" in views directory'
I’m trying to set my default folder of the views but something is going wrong because it does not find the views... By the error that returns it seems that he is fetching them in the wrong folder.…
-
1
votes0
answers13
viewsFormat date field to display on the EJS page with Node.Js
I am using Node.JS to retrieve data from a Mysql table, but I would like the date field to be displayed in the EJS view in the "DD/MM/YYYY" format. Showing "Thu Jul 15 2021 18:00:00 GMT-0300…
-
1
votes0
answers43
viewsProblem with findOne verification
I am using typeorm and postgres. In my use case I have a execute method: async execute({ name, email, password }: ICreateUserDTO): Promise<void> { const userExists = await…
-
1
votes1
answer51
viewsIs there a more efficient method of traversing a JSON and returning its index than FOR?
I try to know if there is an optimized method, or at least more idiomatic, to go through this JSON and return its index, in case the player sought const data = { "clubes": { "20" : { "id" : 20,…
-
1
votes1
answer26
viewsError with custom validation with express-Validator
I’m trying to do a personalized validation with express-Validator that must return an error message if the value is different from null and has a different value than 10 characters, and which must…
-
1
votes0
answers35
viewsIs it possible to integrate the express-Validator with the multer?
I am developing an API for study and in this API I have the functionality to add a vehicle, in which I recover the data passed by the user and an image. But as I am using the express-Validator,…
-
1
votes0
answers52
viewsWork with heavy / time consuming functions in React (Node.JS)
I have an React project where when the user opens a page, the app starts creating a 2048 RSA key pair. How do I ensure that the page does not "lock", IE, it is in the background and when the key is…
-
0
votes4
answers512
viewsDebug applications in Nodejs
What are the best tools to be used in debugging applications?
-
0
votes2
answers892
viewsUpload localhost application for online domain (hosted on my computer)
I always got it for everything related to servers and stuff. I’m running an application that uses the famous nodejs, and my hosting doesn’t support it. So, just for "online" testing I wanted to make…
-
0
votes3
answers7312
viewsHow to count page views on a website
I would like to implement a page views counter on my site, present a numerical reference on the site, and use this data to perform a ranking of most accessed articles/post and automatically insert a…
-
0
votes1
answer1038
viewsHow to implement a search engine on a site that is in a Node.js environment
I made a site in the environment Node.js, using Express, template engine Jade, The problem is that the search engine (search engine) I have ready is in PHP, I do not know if I can run it in Node…
-
0
votes2
answers1276
viewsHow to upgrade my Node.js project to Heroku?
Have a project that uses Node.js, Websockets, Socket.io and HTML5 running on my internal wireless network. I want to put you public using Heroku. Please tell me the steps to be followed so I can…
-
0
votes1
answer879
viewsAtom Text Editor Installation
I discovered a new code editor recently, the Atom, on the platform Github. My question relates to the installation of this publisher and the documentation they give. I have to install Node.js or…
-
0
votes2
answers410
viewsUnknown Error: "null" when running an Httppost with Parameters
Explanation: I own a simple Android app, and also a Nodejs server. I have the following permissions on AndroidManifest.xml of my application: <uses-permission…
-
0
votes1
answer84
viewsProblems with gm (Graphicsmagick) and Node.js module
I am doing a test project to see the features of gm module, because I need to manipulate images on the server (resize, place Watermark, generate Thumb, among others). Well, I installed…
node.jsasked 10 years, 4 months ago Leandro Cissoto 67 -
0
votes2
answers2482
viewsGrunt - node_modules folder outside the project
Guys, I’m starting in Gruntjs, my folder node_modules has 50MB, that for each project, it gets bad. I wonder if you have how to leave a standard node_modules folder in one place to use in all…
-
0
votes2
answers525
viewsHow to place url dynamically to facebook comment boxes, specific to each page
Lí in a reply that in php we can do like this: <div class="fb-comments" data-href="<?php echo $url; ?>" data-width="687" data-numposts="7" data-colorscheme="light"></div> <?php…
-
0
votes2
answers469
viewsNodejs or flash solution for streaming live video!
Hello, I have posted several messages on the subject but I have not yet achieved a definitive solution, I need to do streaming live video and that the player that will stream runs on any browser…
-
0
votes1
answer63
viewsHandlebars Compile Function with options Parameters
I want to minify my template during the build period of the same on Nodejs Researching about I discovered that the handlebars.compile(templateLoaded); has more options than the template parameter. I…
-
0
votes2
answers96
viewsUndefined is not a Function in Node.js using Mongoose
I know that this mistake may have several causes, but I have not been able to know mine. I have a function to save a Document in my Mongodb and I am using callback for this. The code is executed…
-
0
votes0
answers63
viewsMeteor error on the client side, does anyone know what this is?
The Connection to Ws://localhost:3000/sockjs/622/u2zaukpp/websocket was Interrupted while the page was loading. The error message says that the sockjs 'websocket' was interrupted while the page…
-
0
votes1
answer1648
viewsHow do 'request' and 'Response' events work on Node.js?
Everybody knows how to use the request and response properly as callback parameters of the http.createServer, and that we use these two parameters as objects inside the callback. I searched the…
-
0
votes1
answer1869
views -
0
votes0
answers79
viewserror installing Mongoose in win server 2008 R2
The error below appears when installing Mongoose on the op. server 2008r2 system All applications are installed correctly. but the database does not seem to compile. c:\program…
-
0
votes1
answer598
viewsAdd json event url in fullcalendar
I’m using fullcalendar, nodejs and Mongoose. I’ve already managed to generate the json file. But when passing the path in the js of fullcalendar, I cannot recover the events. I created a json test…
-
0
votes0
answers59
viewsHelp Page Single Angular
I have an application with divided into several service blocks developed using Nodejs, Angularjs and Mongodb using Express. Each service block has its own services, controllers and their own…
-
0
votes1
answer63
viewsSearch comparing id of two Collections
I need to load the data by joining two id On a form I fill out my client with an ID. In another form I fill out other information and upload the customer ID. That is, both forms, send the same ID to…
-
0
votes1
answer967
viewsDoubt in web service development for APP(android) and WEB(php)
Hello, we are developing an APP for android and this will make a query in a webservice (that is not done yet) to validate data requested by the APP. The same project runs on the web and is developed…
-
0
votes1
answer126
views> (Node-Gyp rebuild 2> builderror.log) || (Exit 0)
I’m running sudo npm install websocket on my Mac with nodejs but causes me this error, how to fix? npm install websocket - > [email protected] install /Users/Vinicius/node_modules/websocket >…
-
0
votes0
answers46
viewsWhat is the behavior when Mongodb reaches the defined maximum value of $inc?
What is the behavior when Mongo reaches its maximum value for findAndModify with parameters below, how can I restart to 0 when this happens? db.collection('count').findAndModify( { "_id": "xy" },…
-
0
votes0
answers168
viewsHow can I call a nodejs method in Java code?
I need to use a Node method in a Java application. I can’t use Nashorn because I need Jquery since pure JS doesn’t solve my problem. Since Node allows the use of Jquery, it was chosen, but I cannot…
-
0
votes1
answer130
viewsSelect within a setInterval and fill an array in the nodejs
I am making an application that needs to be checked in the bank if there has been any change using nodejs. The application works, however, when I have more than one record in the table, it…
-
0
votes1
answer637
viewsaccess apps in Heroku giving error
well guys I’m trying to install an apps in Heroku but I’m not getting to visualize the status of my apps my apps is a server in Node.js and socket.io in Heroku there is the option of deploying by…
-
0
votes1
answer420
viewsI cannot display my html pages with Node.js
I am trying to display my html pages inside my main layout but always error 404: Error: Not Found AT: Users Adiego Documents Projectsystem1 app.js:36:13 This is my app.js: var express =…
-
0
votes0
answers67
viewsNodejs - socket.io error : xhr-Polling
I’ve got a nasty J server set up this way: var express = require('express'); // CHAMADA DA API EXPRESS var app = express(); var server = require('http').createServer(app); // CHAMADA DO HTTP var io…
-
0
votes0
answers319
viewsDLL error installing Node.js in Windows 10
When I will install Node.js on Windows 10 appears the following message: There is a problem with this windows installer package. A DLL required for this install to complete could not be run. Contact…
-
0
votes2
answers754
viewsChange the value of a global variable within a mongoDB function?
How can I change, for example, the Myvar value within the Collection.Insert function? Thank you! ;)…
-
0
votes1
answer240
viewsHow to resolve the issue with the route in Node.js?
Using Node.js, this application should populate the terminal with tweets (the file name is tweet_counter.js): var ntwitter = require('ntwitter'), credentials = require('./credentials.json'),…
-
0
votes1
answer113
viewsNode.js Conflicts: /sbin/Node vs /usr/bin/Node
Good morning, everyone ! I would like someone to exclaim very well this conflict that arises in the installation of the nodejs ? Thanks!
-
0
votes1
answer160
viewscannot get/ chat socket.io
I am trying to start the socket.io service, but error appears Cannot GET/ my server.js is like this var socket = require( './node_modules/socket.io' ); var express =…
-
0
votes1
answer169
viewsProblems in PM2 - Nodejs
I have a problem with PM2 has ever happened to someone. I start some applications and they usually appear in the list when running pm2 list. But after a few days applications disappear from pm2…