Questions tagged as 'nodejs'

1
answer

Failed to search view in the views directory for a nodejs app

I try to create my first Node JS project but I can not show the .ejs page that I created in my views directory. In effect I get: mike@mike-thinks:~/Desktop/Exercises$ node app.js ********************************************************...
asked by 13.04.2018 / 16:17
1
answer

export result of a nodedels middelware to a static js file

I am working on NODEJS and express, in my middelware routes / md.js file I process a request to the database and as a result I have an ARRANGEMENT. I need that arrangement to be read by a static public / js / estatico.js file that is called d...
asked by 20.03.2018 / 04:26
1
answer

Problems with the angular server

I recently started making a web application in angular, and now I'm going back to the project, the question is that I want to compile by going to link and I do not nothing appears, I do not compile the project, I do not know how to upload it t...
asked by 23.03.2018 / 23:00
1
answer

Problems with installing angular cli

when trying to install the angle cli using sudo npm i @ angular / cli I get this error npm WARN saveError ENOENT: no such file or directory, open '/Users/Luis/package.json' npm notice created a lockfile as package-lock.json. You should comm...
asked by 04.02.2018 / 16:58
1
answer

Contents of a tar.gz with nodejs

I have a file .tar.gz , which I have to decompress in a route, but I need to review what is inside it and then unzip it. I have the following code: const targz = require('targz'); targz.decompress({ src: 'archivo.tar.gz', dest:...
asked by 03.01.2018 / 15:44
2
answers

receive variables from node js in javascript

I want to read a server variable in my HTML I'm using nodejs , JS and HTML This is how I send it, but I do not know how to paste it in JS to paint it in HTML const express = require('express'); const...
asked by 07.12.2017 / 19:13
1
answer

Two word prayer stored in var Javascript

If I keep a sentence that will always consist of one or two words in a variable var , how do I save the first word in one variable and the second in another, in the event that the sentence be of two words, and to know that (if the sentence in...
asked by 11.12.2017 / 04:05
3
answers

How can I use the promises nested in this case? NodeJs

I'm doing a code that makes 3 sequential validations, and I'm using promises, however I understand that there is a structure of promises sequential, but I do not understand how to use it in this case. valida.user(data).then((rows)=>{...
asked by 10.11.2017 / 00:58
1
answer

Mongodb: Compare two collections and eliminate repeated documents

I work in a company that makes the collection service to bank customers (banks are our clients) and I mention this so that I do not think I do it for non-legal purposes. What is the best mechanism to eliminate existing data in another collect...
asked by 03.10.2017 / 01:00
1
answer

I can not install opus node [closed]

I do not install node opus I get the error, I've tried to reinstall all the packages related to this and does not work any suggestions? The error is as follows: link 0 info it worked if it ends with ok 1 verbose cli [ 'C:\Program Files\nodej...
asked by 27.09.2017 / 17:08