Hi,
First of all thanks for your library, its small though it should be very usefull to me! Or it would be if I managed to get it to work. I've got problems with even starting ngrok. Could you perhaps tell me what I'm doing wrong?
Below is my code:
var ngrok = require('ngrok-daemon');
var port = 8000;
console.log(`Starting ngrok on ${port}`)
ngrok.start(port)
.then(function(tunnel) {
console.log(`Ngrok started on ${port}`);
console.log(`Ngrok tunnel properties: ${tunnel}`);
ngrok.stop(tunnel.pid);
process.exit();
})
.catch(function() {
console.error(`Failed to start ngrok on ${port}`)
process.exit();
});
My dependency is "ngrok-daemon": "^0.5.0".
The result (after the first console.log nothing happens):
$ node ngrok-agilecards-jira.js
Starting ngrok on 8000
Hi, First of all thanks for your library, its small though it should be very usefull to me! Or it would be if I managed to get it to work. I've got problems with even starting ngrok. Could you perhaps tell me what I'm doing wrong? Below is my code:
My dependency is
"ngrok-daemon": "^0.5.0"
. The result (after the firstconsole.log
nothing happens):Ngrok is not getting started:
My node version is
6.3.1
and my ngrok version is2.1.3
. Thanks in advance for any help!