Questions tagged as 'nodejs'

1
answer

functional code does not run on my telegram bot

The problem is that this code: const Jimp = require('Jimp'); var map = [["⬜","⬜","u","⬜","⬜","⬜"],["⬜","⬜","⬜","⬜","⬜","⬜"], ["⬜","⬜","⬜","⬜","⬜","⬜"],["⬜","⬜","⬜","⬜","⬜","⬜"], ["⬜","⬜","⬜","⬜","⬜","⬜"],["⬜","⬜","⬜","...
asked by 11.04.2018 / 08:10
1
answer

problem generating css with node-sass

To add the conversion from sass to css on my node I followed the steps of this tutorial , after completing it my file package.json looks like this: { "name": "kimera", "version": "0.4.4", "description": "A Modern CSS and JS frame...
asked by 24.03.2018 / 08:33
1
answer

Send image through Http Post

Hello everyone, I'm trying to send a node file (Client) to my Java web service using Jersey the file is received correctly using POSTMAN this is my Java code: @POST @Path("eliminar") @Consumes({ MediaType.MULTIPART_FORM_DATA, ("text/plain"...
asked by 25.04.2018 / 14:40
2
answers

Regular expression

I would like to see how I can obtain a regular expression to get the result in brackets without considering the sub brackets, I will explain with an example let txt = F[aaa(0,0,0)] otra texto F[bbb(1,1,1)] let regExp = /F\[([^\]]+)\]/g; let ma...
asked by 11.05.2018 / 20:05
1
answer

Uninstall Windows NPM

I have a problem, I want to uninstall NVM from windows because, it does not let me run angular applications, someone knows how to uninstall it     
asked by 21.09.2017 / 14:14
1
answer

Node - console.log (req.body) -undefined

Hi friends, I am trying to print a reply by console, that receives my app in node and that I am sending from Postman , but when I print in console it gives me the object undefined .    Server Started.
asked by 02.02.2018 / 18:46
2
answers

Node -npm start npm ERR! missing script: start

Hello, I'm using Node to make a RESTFUL API. I just found out that now npm uses package-lock.json and I do not know if this changes the way you work with node ... this is my error and my code var express = require('express') var a...
asked by 02.02.2018 / 17:15
1
answer

Class constructors can not be invoked without 'new'

I was trying to make a package of npm , something simple: class Hello { constructor(world){ this._world = world | 'world'; } world(){ return this._world; } } module.exports = Hello; After doing tests...
asked by 02.02.2018 / 14:09
1
answer

How can I work with events in a meteor project, for example animate ()?

I am working with React and Meteor components but since I can enter some kind of animation with jquery animate (), I have read something about 'ComponentDidMount (), by saying my components are in this way, how can I reference the DOM nodes for...
asked by 07.10.2017 / 17:05
2
answers

How to modify the structure of a table with sequelize without deleting the data?

I have a model made with sequelize , I can not delete the data from the institution table, but now I have to add a day field. I've already tried sequelize.sync but it does not modify the structure of the table. and sequelize.sync...
asked by 11.07.2017 / 16:10