NativeScript / NativeScript/nativescript-cli

npms.io search broken since Jan 2023 (a.k.a. remove `search` command from package managers or use `https://registry.npmjs.org/[query]`)

Open
#5,792 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug-pending-triage
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

Issue Description

The package manager's search method calls the npms.io API to search for package names.

npms.io has been broken and not updating with new packages since Jan 2023 See https://github.com/npms-io/npms-api/issues/112

One solution would be to switch to the https://registry.npmjs.org/[query] endpoint.
But a better solution imo, would be to remove the search and view commands from npm, pnpm and bun package managers as an opportunity to simplify and reduce code maintenance, given it's been broken a very long time and a dev can just use their package manager directly for those.

Reproduction

No response

Relevant log output (if applicable)

No response

Environment

No response

Please accept these terms

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the package manager search method and the implementations of the search and view commands for npm, pnpm, and bun. Compare the existing npms.io call with the proposed registry.npmjs.org endpoint, then confirm whether the intended outcome is replacing the endpoint or removing the commands; done means the selected behavior is implemented consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.