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
votes1
answer291
viewsHow to make a script in the Pug engine
I’m trying to make a script that contains a function in the Pug engine, but I can’t get it called when the user sends the form, can anyone help me? Follows the code: html head title= message script.…
-
-1
votes1
answer93
viewsCatch domain via Node/Vue.js
I simply want to show the domain that appears there in the URL when accessing the page. window.location.hostname Give me this, only it doesn’t work on Node/Vue.js, so what would be the solution?…
-
-1
votes1
answer639
viewsEnvironment Sweeps Configuration - Commands Not Working - Ionic
You are showing the following error: 'Ionic' is not recognized as an internal command or external, a operable program or a batch file. But this command appears only in Cmder, at the Node.js prompt I…
-
-1
votes1
answer411
viewsError -4058 Npm install
Good afternoon, lately, when I try to install a dependency via npm install, it sometimes happens, already[! [insert image description here solved once deleting node_modules and giving an install…
-
-1
votes1
answer908
viewsHandling a txt file with javascript
Well, I wanted through a txt file, to transform the lines into arrays (if it is better) to search within it a sequence with 9 numbers, and then link to an image. Obs: within the txt’s that will be…
-
-1
votes1
answer42
viewsTools js, CSS and others
I’ve been noticing more and more tools like. Webpack.js, Gulp.js, Node.js, React.js, Less, Sass, jquery, angular. Many as close features. Others not so much. Some may work together, but won’t it…
-
-1
votes1
answer39
viewsHow to use a direct Html tag on my object?
Example, I want to make a list with the HTML tag <ul> <li>primeiro item</li> <li>segundo item</li> <li>terceiro item</li> </ul> And my object is like…
-
-1
votes1
answer1139
viewsAccess localhost Node JS over the network
I created a server with Node.js and need to access from another machine on the network. How could I do this?
node.jsasked 5 years, 6 months ago Erico Calasans 47 -
-1
votes1
answer109
viewsNodejs returns: Illegal Arguments: number
const bodyParser = require('body-parser'); const bcrypt = require('bcryptjs'); //Bring in User Model let User = require('../models/user'); var urlencodedParser = bodyParser.urlencoded({extended:…
-
-1
votes1
answer1477
viewsPayments in React Native
for in app payments, what is the best solution ? I saw that no operator has React Native files.. I’m trying to create an online store, but I’m stopping by this part. Thank you!!
-
-1
votes1
answer7646
viewsRoute.get() requires a callback Function but got a [Object Undefined]
In an application nodejs I get this error message: Version: Date of publication: 8.9.2 npm: 5.5.1 express: 4.15.5 Error image: Code from the app.js /** * Module dependencies. */ var http =…
-
-1
votes1
answer221
viewsNodejs update
I am currently with V8.10.0 and wanted to update it to 10.16, but when using: sudo npm cache clean -f I get the following answer: using --force I sure Hope you know what you are Doing. How to solve…
-
-1
votes1
answer42
viewsPerform file Reload without Restart
You can perform the Reload of the file without Restart of the application: - I have a file of config.json, this file is changed sometimes, only the API does not identify this new configuration, only…
-
-1
votes1
answer301
viewsReact-Native start locks in Loading dependency Graph
When I try to give a React-Native start to test my app, it hangs on Loading dependency Graph... and never goes to the "done.". The worst is that it starts to consume all my memory until windows…
-
-1
votes2
answers107
viewsDon’t I have to worry about the frontend?
I would need to worry about the vulnerability of frontend or just with the backend?
-
-1
votes2
answers1102
viewsReturn only some JSON fields in the request response (Nodejs + Mongoose)
I am with the following problem, I am trying to return only some fields like "name" and "email" of my JSON object, because it alone has 23 attributes exports.listarProfissionais = function(request,…
-
-1
votes1
answer135
viewsError installing Exp via npm
Error installing Exp via npm Expo is a set of tools, Libraries and services which Let you build Native iOS and Android apps by writing Javascript. ERROR! npm install exp -g Even installing with sudo…
-
-1
votes1
answer165
viewsWhat’s the secret for on the express?
I have an express application, but I do not know how important it is to set up secret in middleware session(). Could someone explain to me what secret does? What is the function?…
-
-1
votes1
answer573
viewsHow does an express session work?
I have a problem logging into my application. If a user logs in, they log in to everyone who visits the site. Could you explain to me how a session works so I can understand better?
-
-1
votes1
answer340
viewsHow to order file from another folder and run it Javascript
I’m making a bot for Discord, there is a folder called Commands, I wonder what I call the files of this folder in my main file, bot.js and run them
-
-1
votes1
answer186
viewsError in ASYNC update method with Node.js
Unhandledpromiserejectionwarning: Unhandled Promise rejection. This error either originated by Throwing Inside of an async Function without a catch block, or by rejecting a Promise which was not…
node.jsasked 4 years, 11 months ago Felipe Carpes 1 -
-1
votes1
answer707
viewsHow to use Google Maps API with Google Directions API?
Hi, I am using the Google Maps API and want to be able to click, for example, a previously created point on the map and get directions from my location to the selected point. For that I am trying to…
-
-1
votes1
answer40
viewsHttp server for Node.js
i installed an http server for Node.js globally to run a web application. When I start the server and try to access by "localhost:8080" it gives message: ERR_INVALID_REDIRECT Even starting the…
-
-1
votes2
answers212
viewsHow to Keep the values of a variable, even when restarting the program, in Javascript
I have the following problems every time I create a Javascript program and declare the values of the variables, when restarting the program the value of the variable is lost. ex: var usuario = {…
-
-1
votes1
answer609
viewsERROR 1045 (28000) MYSQL
I’m starting with the back-end and I’m having a hard time installing mysql, after installing and doing all procedures while trying to run the mysql the following error appears (it is worth…
-
-1
votes1
answer996
viewsModule not found: Can’t resolve 'Assets/css/custom.css'
I have a small problem when starting my project in React, when running the command Yarn start the terminal returns me the following error ./src/index.js Module not found: Can't resolve…
-
-1
votes2
answers105
viewsHow could I see the variables of a local server running Node.js by "Inspect" the browser?
For a local HTML the global variables can be seen by the browser with Inspect, but I cannot see the variables running locally the same code with Node.js together with Express. I’d like to see the…
-
-1
votes1
answer20
viewsNodejs + Moongose + Typescript
I’m new to development with Nodejs and I’m having a problem. I have an Array of an obj whose Id is type Objectid from Mongo. I’m trying to make a find inside this Array by searching for that Id. And…
-
-1
votes1
answer99
viewsRecover DB data from a certain date
I am creating an api in Node.js, using express and Sequelize as ORM. I would like to know, which expression should I use to recover DB data from a certain date. I’m using the date-fns to determine…
-
-1
votes1
answer458
viewsError in npm of Node.js |Cannot find module 'json-parse-Better-errors'
Getting to the point is this error: 0 info it worked if it ends with ok 1 verbose cli [ 'C: Program Files nodejs Node.exe', 1 verbose cli 'C: Users Acer Appdata Roaming npm node_modules npm bin…
-
-1
votes1
answer59
viewsI need to associate variable to a key of the NODEJS object
I am finding in the database the correct seller, however when I try to associate the sellerSupport variable to the value of the support object within the user, it Undefined me and I cannot associate…
-
-1
votes1
answer16
viewscatch href based on a class
I need your help in the following problem to automate a task, I have a class="meet" is what differs from the other links, based on this class I need to get the link that changes to each client,…
node.jsasked 4 years, 8 months ago cleomarjose 1 -
-1
votes1
answer79
viewsHow to add two values within a v-select?
Ex: let caracteristica = { id_caracteristica: 2, caracteristicas: "exCaracteristica" } <v-flex xs12 sm3 md6> <v-select v-model="selectdCaracteristica" label="Caracteristicas"…
-
-1
votes1
answer523
viewsUPDATE npm and Node
I’m with npm -v = 3.5.2 and node -v = v8.10.0 Operating system: ubuntu 18.04. Can someone help me update npm and Node? Thanks in advance, I did not succeed after several researches for update.…
-
-1
votes1
answer157
views -
-1
votes1
answer23
viewsINVALID URL error when trying to create a Websocket in Nodejs
When I try to create a websocket in nodejs is giving the INVALID URL error and I can not solve. var config = require('./ext/config.js'); var ServURL = { port: config['port'], path: '/slither' };…
-
-1
votes1
answer2292
viewsI use vscode with Node, but it does not show my codes in js in output, I use code Runner tbm
I decided to learn Javascript in a course, so I downloaded the Node and vscode, installed everything right, put the code Runner, then when I execute a simple code as console.log('Hello, World'),…
-
-1
votes1
answer451
viewsPROXY IN NODEJS AXIOS
How do I put proxy on request in Xios? I’ve tried everything but I’m not getting it. axios.post('localhost:3000', postdata, { headers: headers }, { proxy:…
-
-1
votes1
answer193
views(React) Bootstrap overwriting my css
Hello, everyone. I’m a beginner with React and I was developing a front-end application and decided to use the bootstrap to make a slide. I installed the bootstrap through npm install and installed…
-
-1
votes1
answer471
viewsProblems connecting Node.JS Express in Mysql
I know my project is correct that there is nothing wrong, I think the problem is my newly installed bank, how can I solve this problem? Unhandled rejection SequelizeConnectionError: Client does not…
-
-1
votes1
answer69
viewsHow to publish a package to NPM with custom CLI
I created a folder structure developed for project in Nodejs, but I would like to publish it in NPM with a custom CLI, so that it was possible to choose what to install, something like:…
-
-1
votes2
answers49
viewsI started studying Java Script, and I’m having a problem with my code ( from an exercise). And I have no idea how to solve the problem
function val(x, y, z) { if (x !== undefined && y === undefined && z === undefined) { return x; } else if(x !== undefined && y !== undefined) { return x +…
-
-1
votes1
answer122
viewsHow do I delete cookies on Node.js when the user leaves the site?
I am setting a cookie in Node.js when the user chooses the language: res.cookie('lang', req.body.lang) But I wanted to delete the cookie when it closes the site, so that when it comes back the…
-
-1
votes1
answer29
viewsInclude return of a foreach within the background-image url
Speak guys, I need to include the return of a foreach within the url of a background-image, please can help me: <!-- Slide 1 --> <% DTSection0.forEach(function(row){ %> <div…
-
-1
votes1
answer657
viewsJavascript Console.log (beginner)
Hello, I started yesterday to study Js, one of the challenges of Rockseat about Js is to give console.log() and give as a result: "Rua dos Pinheiros". But because it is a string q pull of a variable…
-
-1
votes1
answer25
viewsMy Node.JS keeps running in the old version
Hello, I’m making notifications with cloud functions and Node.js, my version of Node.Js is 12 but deploy is being on 8, can anyone help me ? PS: Google will stop accepting version 8.…
-
-1
votes1
answer52
viewsSELECT JSON NODEJS
So I have the following JSON : var json = { 'cache-control': 'no-store, must-revalidate, max-age=0', 'content-length': '12747', 'content-type': 'text/html;charset=utf-8', 'content-language':…
-
-1
votes1
answer87
viewsUsing the __dirname global variable in the nodejs
Good night, you guys! Someone gets a help there, I need to leave the back-end folder and enter the front-end and get my html file using __dirname as it is in the image.…
-
-1
votes1
answer192
viewsHow to receive HTML information in Node js
Hello I would like to know how I can receive the data of my form in HTML in Node js, I have the login form and I want to receive and check if this user is valid, but I want to check in my file that…
-
-1
votes1
answer44
viewsHow to open a href link via console dev tolls?
How can I, using the Chrome console (dev tools), open the example link below in the same window as the website: Example: website: https://musica.cancaonova.com/ link location:…