Questions tagged as 'node.js'

1
answer

How to remove the Node in Arch linux / Linux Manjaro

Recently I started a project but my node has a small error and I need to remove it. The following question is how to completely remove node.js using the Arch Linux terminal? And when I run the command pacman -R node as super user I get this e...
asked by 10.05.2018 / 19:11
1
answer

Is there any way to connect a project made in node.js direct to a domain?

Well, my problem is because I have a site open on port 80 and a project made on open node on port 8080. I own the domain: link , trying to access it only directs all subdomains to my site (causing my application to run out of domain), is there...
asked by 17.04.2018 / 19:58
1
answer

How to add parameter in nodejs

I'm new to 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 run node hello , it will return "Hello So-and-so." Ho...
asked by 15.03.2018 / 17:05
1
answer

Botpress installed one version, displaying the other at application start

I'm trying to run version 10 ( develop/x ) of botpress , but whenever I give start it displays version 1.1.13 root@3900662b3eb1:/bot# bp start 18:49:25 - info: Starting botpress version 1.1.13 18:49:25 - info: Loaded botpr...
asked by 02.03.2018 / 19:54
1
answer

How to search and update data with mongoose?

I'm using mongodb with mongoose in nodejs, I have my schema like this: const UserSchema = new mongoose.Schema({ username: { type: String, unique: true, require: true }, balances: { dolar: {...
asked by 20.03.2018 / 00:22
1
answer

Nodejs ignore request POST made by Angular

Context: I'm using a virtual machine, ng serve is running on port 4200, and nodejs on port 8024, when I try to send data to the server nothing happens, the part of the angle is apparently error-free. When I use postman to send a...
asked by 24.06.2018 / 21:57
1
answer

Update exported property on nodejs

I'm passing my electronjs app (nodejs) to the MVC standard and I encountered a problem when updating an exported property. Example of my application.js : // Importa os módulos privados const config = require('./config/config'); con...
asked by 12.03.2018 / 09:15
1
answer

Organize Json file

I wanted a way to organize this Json file: { "ajuda": { "name":"Ajuda", "category": "Sistema", "desc":"Mostra todos os comandos disponiveis.", "usage":"ajuda [grupo ou comando]" }, "ping": {...
asked by 22.01.2018 / 01:31
1
answer

Put EJS files in the Service Worker cache

I would like to know how I can cache the% .EJS files because they are not rendered by the browser, but by the server and only after sending the corresponding .HTML to the browser. self.addEventListener('install', function(event) { event.w...
asked by 16.01.2018 / 15:10
1
answer

'Can not set headers after they are sent.' Express.js

I'm trying to send the 'name' variable to the client side, but it's only working when I run a respons.end() when I use two, returns this error: > 'Can't set headers after they are sent.' Server router.get('/:eventnick', func...
asked by 14.01.2018 / 18:26