Sou novo no mundo do Nodejs, gostaria de saber por que não consigo testar o algorítimo mais básico dos documentos https://github.com/PokeAPI/pokedex-promise-v2
meu codigo esta assim:
var Pokedex = require('pokedex-promise-v2');
var options = {
protocol: 'https',
hostName: 'localhost:443',
versionPath: '/api/v2/',
cacheLimit: 100 * 1000, // 100s
tiemout: 5 * 1000 // 5s
}
var P = new Pokedex(options);
P.getBerryByName('cheri')
.then(function(response) {
console.log(response);
})
.catch(function(error) {
console.log('There was an ERROR: ', error);
});