Skip to content

[BUG] npm search with scope parameter does not return accurate results #8274

Closed
@abhijeetsharma7

Description

@abhijeetsharma7

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

I am trying to get all the packages which starts with a specific scope, where scope is @.
The command i am using to get the same is -
npm search scope:@ --searchlimit=100 --json
However this yields not so good results. Many packages are return which are not related to the scope.

Also, is there a config for searchlimit like searchlimit=-1 which may return all the results instead of specifying a pre defined limit ?

Expected Behavior

Should return results of packages which contains the scope as mentioned in command.

Steps To Reproduce

No response

Environment

  • npm: 10.9.2
  • Node.js: 22.14.0
  • OS Name: mac
  • System Model Name: M3
  • npm config:
; copy and paste output from `npm config ls` here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next steps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions