首页 前端知识 npm publish包报404,is not in the npm registry错误

npm publish包报404,is not in the npm registry错误

2024-06-06 00:06:24 前端知识 前端哥 601 897 我要收藏

1. 指定发布目标2. 登录npm,使用登录名发布包,包名命名原则“@登录名/包名”,或 “包名”

3. 删除某一个版本npm unpublish @pvfhv/eslint-config-prettier@1.0.1 --force

删除后的版本不能重复使用,正式解释:

Unfortunately, there is no longer any way to re-use a previously unpublished version of a package in the npm registry. The reason for this is that various systems rely on "name@version" being a unique identifier, and start throwing security warnings if the shasum changes.

While this policy is inconvenient in situations like yours, it also closes a very significant potential security vulnerability if any part of the registry infrastructure is ever compromised, without asking humans to keep track of opaque shasums themselves.

For this reason, we recommend bumping the "patch" version for even the most trivial updates.

转载请注明出处或者链接地址:https://www.qianduange.cn//article/10967.html
标签
评论
发布的文章

JQuery中的load()、$

2024-05-10 08:05:15

大家推荐的文章
会员中心 联系我 留言建议 回顶部
复制成功!