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

未关闭
#5,792 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
javascript
领域
cli

调研方向

首先定位包管理器的搜索方法,以及 npm、pnpm 和 bun 的 searchview 命令实现。将现有的 npms.io 调用与提议的 registry.npmjs.org endpoint 进行比较,然后确认预期结果是替换 endpoint 还是移除命令;选定的行为得到一致实现后即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug-pending-triage
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
主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NativeScript/nativescript-cli 的其他 Issue

查看 NativeScript/nativescript-cli 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。