当前位置:网站首页>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:57:00 【no tide】
npm publish error when sending package
Console error

You can see the released package on the npm official website, but there is no content (as follows)The package is basically released, and there is a small error later

Reason:
When a package with the same name is released again, it cannot be the same version as the last released package
Workaround:
In the package.json file, increase the version number of the package.
Change the version number to 1.0.1

After re-npm publish, refresh the page, you can see the corresponding package just published

Note
We usually use Taobao mirror sources, so we cannot use npm publish to send packages, we must switch the address back to npm official website
Using the nrm tool
Global installation nrm
npm install nrm -gView all mirror sources
nrm ls
Switch to official address
nrm use npm
When sending the package, you must switch to the official npm address. To improve the download speed later, you can also use the command nrm use taobao Switch the address back to the Taobao mirror to increase the speed, We should pay attention to this when we operate normally
If there are any mistakes in the article, I urge you to ask questions, I would greatly appreciate it.If you don't understand, you can comment and I will reply
If the article is helpful to everyone, I hope everyone can give it a thumbs up and encouragement, and everyone will work together in the future. The road is long, and the road is long and long
边栏推荐
- 斯皮尔曼相关系数
- The love-hate relationship between C language volatile keyword, inline assembly volatile and compiler
- 日元疲软令游戏机在日本变身“理财产品”:黄牛大赚
- 【新版干货书】深度伪造 (DeepFakes):创造,检测和影响
- 关于缓存数据的探讨
- 瑞吉外卖项目剩余功能补充
- The perceptron perceptron of Li Hang's "Statistical Learning Methods" notes
- 裁员趋势下的大厂面试:“字节跳动”
- 享年94岁,图灵奖得主、计算复杂性理论先驱Juris Hartmanis逝世
- 牛客网项目17节生成验证码 刷新验证码一直没反应
猜你喜欢
随机推荐
Re22:读论文 HetSANN An Attention-based Graph Neural Network for Heterogeneous Structural Learning
打印lua内部结构的函数调用
带你认识40G单纤双向光模块-QSFP+ BiDi光模块
LeetCode第三题(Longest Substring Without Repeating Characters)三部曲之一:解题思路
适配器模式适配出栈和队列及优先级队列
nacos项目搭建
AutoJs学习-实现谢尔宾斯基三角
软件测试H模型
DVWA Clearance Log 2 - Command Injection
CFdiv2-The Number of Imposters-(两种点集图上染色问题总结)
【Redis】Jedis
Naive Bayesian Method of Li Hang's "Statistical Learning Methods" Notes
Implementation of mysql connection pool
第十六章 协程
Do you agree with this view?Most businesses are digitizing just to ease anxiety
Pytorch的LSTM参数解释
R语言使用ggpubr包的ggtexttable函数可视化表格数据(直接绘制表格图或者在图像中添加表格数据)、设置theme主题参数自定义表格中表头内容的填充色(使用colnames.style参数)
Spend 2 hours a day to make up for Tencent T8, play 688 pages of SSM framework and Redis, and successfully land on Meituan
李航《统计学习方法》笔记之朴素贝叶斯法
leetcode 62. Unique Paths(独特的路径)









