Why not start the NPM server?

0 like 0 dislike
351 views
Make bot for telegram, at the beginning faced with the problem of the following nature.
Does not start the local server with the following error:
[nodemon] 1.17.3 [nodemon] to restart at any time, enter `rs` [nodemon] watching: *.* [nodemon] starting `node index.js` node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecated. In the future, you will have to enable it yourself. See https://github.com/yagop/node-telegram-bot-api/issues/319. module.js:643:30 error: [polling_error] {"code":"EFATAL","message":"EFATAL: Error: getaddrinfo ENOTFOUND api.telegram.org api.telegram.org:443"}


Error bad Google.
All that contains my index.js:
const TelegramBot = require('node-telegram-bot-api') const TOKEN = '///' const bot = new TelegramBot(TOKEN, { polling: true }) bot.onText(/\\/start/, msg => { console.log(msg) })


Suspected that the problem is the massive locks, was trying to use a free proxy for npm:
proxy=http://190.2.133.216:1080 https-proxy=http://162.220.52.141:3128
from hidemy.name.
However, the number of dead. Pomogite people!!!
by | 351 views

1 Answer

0 like 0 dislike
In General, the solution found by myself. The most basic, downloaded the one a VPN service. Apparently proxy configs npm'not apply to node.js
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
3 answers
asked May 21, 2019 by strelkovandreyvalerievich
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
33,546 users