doowb / npm-api

Node.js library for getting info from NPM’s API
https://github.com/doowb/npm-api
MIT License
106 stars 18 forks source link

Cannot read property 'latest' of undefined #20

Open jameslinimk opened 3 years ago

jameslinimk commented 3 years ago
TypeError: Cannot read property 'latest' of undefined
    at Repo.package (/pro/burito/node_modules/npm-api/lib/models/repo.js:49:28)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

Packages: discord.ts, iseven, chal

doowb commented 3 years ago

Hi @jameslinimk thanks for the issue. Will you show an example of how you're using npm-api so I can understand the issue better? This looks like the same issue as #7, but I'm not sure without seeing more code.