voidcosmos / npkill

List any node_modules 📦 dir in your system and how heavy they are. You can then select which ones you want to erase to free up space 🧹
https://npkill.js.org
MIT License
8.31k stars 188 forks source link

TypeError: Cannot read properties of undefined (reading 'message') #159

Closed milindgoel15 closed 1 year ago

milindgoel15 commented 1 year ago

Describe the bug Gives a typeerror TypeError: Cannot read properties of undefined (reading 'message') Not sure how to fix it myself

To Reproduce Steps to reproduce the behavior:

  1. Open terminal
  2. Run npx npkill
  3. Error occurs

Expected behavior No error

Screenshots If applicable, add screenshots to help explain your problem. image

Additional context Add any other context about the problem here. na

zaldih commented 1 year ago

Thank you for reporting the bug! I seem to have missed something when checking for Uncaught errors during a recent code refactor.

I will release a patch in the next few days fixing this.