当前位置:网站首页>npm ERR! 400 Bad Request - PUT xxx - Cannot publish over previously published version “1.0.0“.
npm ERR! 400 Bad Request - PUT xxx - Cannot publish over previously published version “1.0.0“.
2022-08-02 09:42:00 【潮汐未见潮落】
npm publish 发包报错
控制台报错

在 npm 官网可以看到已发布的包,但是没有内容(如下)大概是包基本发布完,后面出了点小错误

原因:
再次发布相同名称的包时,不能和上次发布包的版本一样
解决方法:
在package.json文件中,把包的版本号提高。
把版本号 改成 1.0.1

重新 npm publish 后 ,刷新页面,可以看到刚发布的相应的包了

注意
平时我们使用的都是 淘宝镜像源 ,这样是不能使用 npm publish 发包的,必须把地址切换回 npm 官网
使用 nrm 工具
全局安装 nrm
npm install nrm -g查看所有镜像源
nrm ls
切换到官方地址
nrm use npm 
发包的时候必须切换到 npm 官方地址 ,后面为了提高下载速度,可以同样使用命令 nrm use taobao 把地址切换回淘宝镜像提高速度,这个我们在平时操作的时候要注意这一点
文章如有错误,恳请大家提出问题,本人不胜感激 。 不懂的地方可以评论,我都会 一 一回复
文章对大家有帮助的话,希望大家能动手点赞鼓励,大家未来一起努力 长路漫漫,道阻且长
边栏推荐
- 向量点积(Dot Product),向量叉积(Cross Product)
- 高效时代,电商运营如何靠RPA快速提效?
- Getting Started with SCM from Scratch (1): Summary of Background Knowledge
- nacos项目搭建
- 【云原生】快出数量级的性能是怎样炼成的?就提升了亿点点
- 打印lua内部结构的函数调用
- 单词接龙 II
- The 17th day of the special assault version of the sword offer
- 【OpenCV】-霍夫变换
- Mistakes in Brushing the Questions 1-Implicit Conversion and Loss of Precision
猜你喜欢
随机推荐
刷题错题录1-隐式转换与精度丢失
CFdiv2-The Number of Imposters-(两种点集图上染色问题总结)
适配器模式适配出栈和队列及优先级队列
YugaByte adds Voyager migration service in its 2.15 database update
R语言ggplot2可视化:使用ggpubr包的ggtexttable函数可视化表格数据(直接绘制表格图或者在图像中添加表格数据)、使用tbody_add_border为表格中的表头添加外侧框线
cococreator dynamically set sprite
转转反爬攻防战
小程序云开发(十):渐变与动画
【云原生】快出数量级的性能是怎样炼成的?就提升了亿点点
net start mysql MySQL 服务正在启动 . MySQL 服务无法启动。 服务没有报告任何错误。
基于列表的排队与叫号系统
8月份的.NET Conf 活动 专注于 .NET MAUI
This article takes you to understand the commonly used models and frameworks of recommender systems
裁员趋势下的大厂面试:“字节跳动”
8月份的.NET Conf 活动 专注于 .NET MAUI
智能网络安全网卡|这是不是你要的安全感
软件测试X模型
Tencent T8 architect, teach you to learn small and medium R&D team architecture practice PDF, senior architect shortcut
曲折的tensorflow安装过程(Tensorflow 安装问题的解决)
一文带你了解推荐系统常用模型及框架








