当前位置:网站首页>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 -g
View 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语言时间序列数据算术运算:使用log函数将时间序列数据的数值对数化、使用diff函数计算对数化后的时间序列数据的逐次差分(计算价格的对数差分)
- R语言使用zoo包中的rollapply函数以滚动的方式、窗口移动的方式将指定函数应用于时间序列、设置align参数指定结果数据中的时间标签取自窗口中的位置(参数right指定取自窗口的最右侧)
- 众城优选系统开发功能
- 日元疲软令游戏机在日本变身“理财产品”:黄牛大赚
- R语言ggplot2可视化:基于aes函数中的fill参数和shape参数自定义绘制分组折线图并添加数据点(散点)、使用theme函数的legend.position函数配置图例到图像右侧
- 转转反爬攻防战
- 1对1视频源码——快速实现短视频功能提升竞争力
- [Concurrent programming] - Thread pool uses DiscardOldestPolicy strategy, DiscardPolicy strategy
- 曲折的tensorflow安装过程(Tensorflow 安装问题的解决)
- net start mysql MySQL 服务正在启动 . MySQL 服务无法启动。 服务没有报告任何错误。
猜你喜欢
node制作一个视频帧长图生成器
RPA助你玩转抖音,开启电商运营新引擎
1对1视频源码——快速实现短视频功能提升竞争力
leetcode 62. Unique Paths(独特的路径)
Getting Started with SCM from Scratch (1): Summary of Background Knowledge
npm ERR! 400 Bad Request - PUT xxx - Cannot publish over previously published version “1.0.0“.
Re22:读论文 HetSANN An Attention-based Graph Neural Network for Heterogeneous Structural Learning
中国发布丨滴滴因违反网络安全法等被罚80.26亿元!调查细节公布
瑞萨RZ/G2L处理器详细测评
裁员趋势下的大厂面试:“字节跳动”
随机推荐
新“内卷”席卷科技圈,Google CEO 要求 174000 员工提高工作效率!
开源一夏 | GO语言框架中如何快速集成日志模块
百战RHCE(第四十六战:运维工程师必会技-Ansible学习1-基础知识讲解)
Long battery life or safer?Seal and dark blue SL03 comparison shopping guide
转转反爬攻防战
Supervised learning of Li Hang's "Statistical Learning Methods" Notes
重磅大咖来袭!阿里云生命科学与智能计算峰会精彩内容剧透
一款优秀的中文识别库——ocr
【New Edition】DeepFakes: Creation, Detection and Influence
带你认识40G单纤双向光模块-QSFP+ BiDi光模块
周鸿祎称微软抄袭 360 安全模式后发文否认;英特尔CEO基辛格回应市值被AMD超越:股价下跌是咎由自取|极客头条...
李航《统计学习方法》笔记之朴素贝叶斯法
DVWA 通关记录 2 - 命令注入 Command Injection
Linux system uninstall, install, upgrade, migrate clickHouse database
日元疲软令游戏机在日本变身“理财产品”:黄牛大赚
曲折的tensorflow安装过程(Tensorflow 安装问题的解决)
Daily practice of dynamic programming (2)
剑指offer专项突击版第17天
众城优选系统开发功能
在全志V853开发板试编译QT测试