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]`)
Nobody has claimed this yet.
- 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
- I have searched the existing issues as well as StackOverflow and this has not been posted before
- This is a bug report
- I agree to follow this project's Code of Conduct
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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