Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
cubercsl opened this issue Mar 8, 2024 · 1 comment
Closed
1 task done

Comments

@cubercsl
Copy link

cubercsl commented Mar 8, 2024

Describe the bug

A clear and concise description of what the bug is.

  • Does this issue still occur in the master branch? (Required)

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)
@cubercsl cubercsl changed the title NPM package count is wong when NPM is installed but no package. NPM package count is wrong when NPM is installed but no package. Mar 8, 2024
@hykilpikonna
Copy link
Owner

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

hykilpikonna added a commit that referenced this issue Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants