Questions tagged as 'node.js'

2
answers

node-sass is not recognized as an internal command

I'm trying to create a command to compile scss into css more easily. I followed this tutorial I installed nodejs, npm and node-sass I joined my project and rode the command    npm init My package.json looks like this: { "na...
asked by 01.11.2018 / 17:37
0
answers

Transform IMAP email body into String

I'm using imap-simple lib to get the emails from my inbox, I had no difficulty retrieving the data, but the body of the email is coming with formatting headers and a code. As I do not know much about email, I wanted to know how I can remo...
asked by 23.10.2018 / 22:40
0
answers

How to make a query in different tables in the same query in MongoDB

Is it possible to query below in MongoDB? The example is in MySQL:    SELECT COUNT (*) AS QTD FROM OPERATORS OP, GROUPS AS GR, AUTHENTICATIONS AS ATH, RESTAPI AS APIs WHERE OP.NAME = 'test' AND GR.NAME = 'group' AND ATH.LOGIN_NAME = 'testa...
asked by 23.10.2018 / 22:51
0
answers

How to troubleshoot the npm warning of requirements for some packages

I'm creating a project using ionic in version 4. But when running the command: $ ionic start MyProject tabs --type=angular These alerts appeared: npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its...
asked by 26.10.2018 / 14:14
0
answers

problem with dialogflow, api.ai, Client access token

To follow this tutorial of the link below because I am creating a chatbot but the inha where I put in the code the Client access token gets sublated with an error, in the browser this message appears when I give the ionic serve Can not GET / a...
asked by 27.10.2018 / 19:39
0
answers

Dialog inverse in integrating watson with the telegram

When you start the conversation with Watson the messages appear reversed, you should first say:    Hello, Alexandre, I am Jairo! for just after saying:    I am here to remind you [...] This integration was done using NodeJS. Cod...
asked by 20.10.2018 / 20:27
0
answers

Relationships hasOne and belongsTo in the same model sequelize

I'm using sequelize along with nodejs and I'm having difficulty with a relationship. I have 3 tables where (local, equipment, shed, area) where in one place I have 1 equipment, it is in a shed and belongs to an area. The temp...
asked by 18.10.2018 / 15:15
0
answers

Can I create a function that inserts the routes registered in the APP for SEED [SEQUELIZE-CLI]?

I have a function that takes all the routes registered in the express and registers these routes in the bank using Sequelize. app._router.stack.forEach(function(r){ // console.log(r.route.path) if (r.route && r....
asked by 15.10.2018 / 22:46
0
answers

Deploy Angular Application

I'm trying to deploy angular but I'm having problems in the production environment (kinghost or github pages) Locally (ng serves --proxy-config proxy.config.json) I use proxy.config.json which redirects my api routes, but the production envir...
asked by 09.10.2018 / 20:30
0
answers

View another site within my view

I would like to know a method to call a chatbot that I developed that is hosted in the IBM Cloud through a button for example in the image below taken from the magazineluiza website: I would like that when the user clicks on a button like...
asked by 13.10.2018 / 20:03