hykilpikonna / hyfetch

🏳️‍🌈 🏳️‍⚧️ Neofetch with LGBTQ+ pride flags!
MIT License
1.3k stars 96 forks source link

NPM package count is wrong when NPM is installed but no package. #240

Closed cubercsl closed 6 months ago

cubercsl commented 6 months ago

Describe the bug

A clear and concise description of what the bug is.

When npm is installed but no package, it will show 1 (npm).

Expected behavior

npm should not show in Packages.

Screenshots

Please include a screenshot of your system information if the specific system environment is relevant to the bug.

image

If applicable, add screenshots to help explain your problem.

Config file

  1. Run cp ~/.config/neofetch/config.conf conf.txt
  2. Drag conf.txt here to upload it.

conf.txt

Verbose log

  1. Run neofetch -vv 2> neofetch.log
  2. Drag neofetch.log here to upload it.

neofetch.log

Additional context

Add any other context about the problem here.

$ npm list -g --depth=0        
/home/cubercsl/.local/lib
└── (empty)
hykilpikonna commented 6 months ago

I'm kind of surprised that npm can exist with zero packages... in theory, there should be at least npm itself installed globally in npm 🤔

But anyways, it shouldn't include npm or "(none)", so I excluded them.

image image image