当前位置:网站首页>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
边栏推荐
- R语言ggpubr包的ggbarplot函数可视化分组柱状图、设置add参数为mean_se可视化不同水平均值的柱状图并为柱状图添加误差线(se标准误差)、position参数自定义分组柱状图分离
- 在全志V853开发板试编译QT测试
- 刷题错题录1-隐式转换与精度丢失
- SAP 云平台上一种 Low Code Development(低代码开发)解决方案
- 百战RHCE(第四十七战:运维工程师必会技-Ansible学习2-Ansible安装配置练习环境)
- 用正向迭代器封装实现反向迭代器
- system_error错误处理库学习
- Application scenarios of js anti-shake function and function throttling
- State Management in Jetpack Compose
- 小程序云开发(十):渐变与动画
猜你喜欢

牛客网项目17节生成验证码 刷新验证码一直没反应

【云原生】快出数量级的性能是怎样炼成的?就提升了亿点点

Long battery life or safer?Seal and dark blue SL03 comparison shopping guide

The use of thread pool and analysis of ThreadPoolExecutor source code

8月份的.NET Conf 活动 专注于 .NET MAUI

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

【New Edition】DeepFakes: Creation, Detection and Influence

leetcode:639. 解码方法 II

typeinfo类型支持库学习

软件测试H模型
随机推荐
typeinfo类型支持库学习
斯皮尔曼相关系数
图形化矩阵,矩阵到底长什么样?
One Summer of Open Source | How to Quickly Integrate Log Modules in GO Language Framework
Daily practice of dynamic programming (2)
高效时代,电商运营如何靠RPA快速提效?
Smoothing of time series data in R language: smoothing time series data to remove noise using the dpill function and locpoly function of the KernSmooth package
Using the TCP protocol, will there be no packet loss?
This article takes you to understand the commonly used models and frameworks of recommender systems
MySql tens of millions of paging optimization, fast insertion method of tens of millions of data
【技术分享】OSPFv3基本原理
AutoJs学习-AES加解密
R语言时间序列数据算术运算:使用log函数将时间序列数据的数值对数化、使用diff函数计算对数化后的时间序列数据的逐次差分(计算价格的对数差分)
nacos项目搭建
iNFTnews | 看见元宇宙的两面,何谓全真互联网和价值互联网?
Rust 从入门到精通03-helloworld
在全志V853开发板试编译QT测试
你认同这个观点吗?大多数企业的数字化都只是为了缓解焦虑
npm ERR! 400 Bad Request - PUT xxx - Cannot publish over previously published version “1.0.0“.
李航《统计学习方法》笔记之朴素贝叶斯法