当前位置: 首页 > news >正文

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

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.

http://www.lryc.cn/news/166567.html

相关文章:

  • pytest-基础
  • 在openSUSE上开启护眼模式
  • vue基础知识十:Vue中组件和插件有什么区别?
  • Arthas是一个Java诊断工具 的入门使用
  • 数据结构——排序算法——桶排序
  • Kafka消息发送可靠性分析
  • 如何将一个字符串转换为驼峰命名法(camel case)?
  • 牛客网项目-第一章-笔记
  • CISP汇总
  • KALILINUX MSF中kiwi(mimikatz)模块的使用
  • hive 中正则表表达式使用
  • mssql ,数据库还原BAK命令行方式
  • uniapp微信小程序《隐私保护协议》弹窗处理流程
  • RK3568 CAN驱动更新说明
  • day47:C++ day7,异常处理、using的第三种用法、类型转换、lambda表达式、STL标准模板库
  • function—— Verilog的函数
  • runtime过程中,常见jar问题解决
  • ElementPlus· banner轮播图实现
  • Linux自动化构建项目工具——Makefile/makefile
  • 第11章 字符串和字符串函数
  • TypeScript项目配置
  • 【Spring面试】二、BeanFactory与IoC容器的加载
  • Android嵌套事务
  • 如何让项目准时上线?
  • ChatGPT 和 Elasticsearch:APM 工具、性能和成本分析
  • 不使用辅助变量的前提下实现两个变量的交换
  • SV-DJS-i13电梯对讲网关
  • 论文解析-基因序列编码算法DeepSEA
  • 计组与操作系统
  • Pytorch中张量矩阵乘法函数(mm, bmm, matmul)使用说明,含高维张量实例及运行结果