Questions tagged as 'node.js'

1
answer

Environment variables remain

I'm following this tutorial, in Linux, but every time I restart I have to set everything up again What do I have to do for the settings to remain globally? I'm using Linux Mint Cinamon (Sylvia) 64 bits [EDIT1] For example: I d...
asked by 13.04.2018 / 22:21
3
answers

Concatenate single quotation marks in date variable?

I have an application in VueJS and I need to concatenate simple quotes in a variable that has a date like this 2017-11-09T02:00:00.000Z . I tried the following and I did not succeed: var novaData = "'" + data + "'" I tried...
asked by 09.11.2017 / 14:28
2
answers

How to install the nodemon globally?

I'm trying to install nodemon globally, using: npm install nodemon --global It seems to install normally, with two warnings for an optional module: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 But when I try t...
asked by 12.05.2017 / 17:50
2
answers

Routes with AngularJS and Node.js

I learned a little about AngularJS and now I'm starting with Node.js and some doubts have arisen. With the Angular I use $routeProvider to create the routes and to navigate between the pages as a single page application, in the Node I was...
asked by 15.06.2016 / 18:49
1
answer

How do the 'request' and 'response' events in Node.js work?

Everyone knows how to use request and response properly as http.createServer callback parameters, and that we use these two parameters as objects within the callback. I searched the DOC's API and there it says that both a...
asked by 13.01.2015 / 18:58
2
answers

I need help with this code ES6

I'm trying to get the data that's coming this way: [ { "name":"JONAS", "languages":["php","javascript","java"], "age":37, "graduate_date":1044064800000, "phone":"32-987-543" }, { "nam...
asked by 19.11.2018 / 03:07
2
answers

http is not recognized in the Node Express project

My project is giving this error message; Whyismyprojectnotrecognizingmyhttp?I'mnew,andI'mstilllearningtoprograminnodeexpress.Thisismypackage.json;{"name": "registre", "version": "1.0.0", "description": "API", "main": "server/server.ts"...
asked by 26.08.2018 / 17:49
1
answer

Express and Express Generator

I understood that the express generator only creates boilerplate pro project. But I do not quite understand what the correct way to add it to the project is I need to install the 2, or just the generator would already suffice? I create th...
asked by 05.08.2018 / 06:43
1
answer

How to implement mongoose-paginate on Node Express?

I'm trying to implement in my Node Express paging project in a menu list, and I found this documentation low enough; MONGOOSE-PAGINATE According to the instructions I first installed lib with this command; npm install mongoose-pagi...
asked by 16.08.2018 / 12:08
1
answer

Get domain via Node / Vue.js

I simply want the domain that appears there in the URL to appear on the page. window.location.hostname gives me this, it just does not work on Node / Vue.js, so what would be the solution?     
asked by 17.08.2018 / 16:26