当前位置:网站首页>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
边栏推荐
- Use the scrapy to climb to save data to mysql to prevent repetition
- 李航《统计学习方法》笔记之k近邻法
- 高效时代,电商运营如何靠RPA快速提效?
- DVWA 通关记录 2 - 命令注入 Command Injection
- In the whole development of chi V853 board tried to compile QT test
- Re22:读论文 HetSANN An Attention-based Graph Neural Network for Heterogeneous Structural Learning
- 【Redis】Jedis
- The realization of the list
- 【技术分享】OSPFv3基本原理
- 第十六章 协程
猜你喜欢

AutoJs学习-密码生成器

一款优秀的中文识别库——ocr

The realization of the list

Naive Bayesian Method of Li Hang's "Statistical Learning Methods" Notes

Use the scrapy to climb to save data to mysql to prevent repetition

iNFTnews | Seeing the two sides of the metaverse, what is the true Internet and the Internet of value?

AlterNET Studio用户界面设计功能扩展

yolov7创新点

基于列表的排队与叫号系统

The perceptron perceptron of Li Hang's "Statistical Learning Methods" notes
随机推荐
一款优秀的中文识别库——ocr
迭代器失效问题
关于缓存数据的探讨
图形化矩阵,矩阵到底长什么样?
YugaByte adds Voyager migration service in its 2.15 database update
你认同这个观点吗?大多数企业的数字化都只是为了缓解焦虑
【Redis】通用命令
CFdiv2-The Number of Imposters-(两种点集图上染色问题总结)
mysql进阶(二十一)删除表数据与数据库四大特性
Re23:读论文 How Does NLP Benefit Legal System: A Summary of Legal Artificial Intelligence
每日一题练习1-15
在全志V853开发板试编译QT测试
R语言使用ggpubr包的ggtexttable函数可视化表格数据(直接绘制表格图或者在图像中添加表格数据)、设置theme主题参数自定义表格中表头内容的填充色(使用colnames.style参数)
[Concurrent programming] - Thread pool uses DiscardOldestPolicy strategy, DiscardPolicy strategy
The realization of the list
Facebook's automated data analysis solution saves worry and effort in advertising
RPA助你玩转抖音,开启电商运营新引擎
【云原生】快出数量级的性能是怎样炼成的?就提升了亿点点
The R language uses the rollapply function in the zoo package to apply the specified function to the time series in a rolling manner and the window moves, and set the align parameter to specify that t
干货|如何在海量文件系统中选择合适自己的文件系统