How to solve the problem with the route in node.js?

0

Using node.js, this application should populate the terminal with tweets (the filename is tweet_counter.js ):

var ntwitter = require('ntwitter'),
credentials = require('./credentials.json'),
twitter;

twitter = ntwitter(credentials);

twitter.stream(
    'statuses/filter',
    {"track" : ["awesome", "cool", "rad", "gnarly", "groovy"] },

    function(stream){
        stream.on('data', function(tweet){
            console.log(tweet.text);
        });
    }
);

It is a Twitter API, which uses the credentials provided by twitter, which were saved in the credentials.json file, saved in the project root folder along with tweet_counter.js :

Butwhenrunningontheterminalitdisplaysthiserror:

Can anyone help me fix this error? Right away, thank you!

    
asked by anonymous 26.10.2015 / 20:08

0 answers