当前位置:网站首页>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
边栏推荐
- Getting Started with SCM from Scratch (1): Summary of Background Knowledge
- The heavyweights are coming!Spoilers for the highlights of the Alibaba Cloud Life Science and Intelligent Computing Summit
- State Management in Jetpack Compose
- 图形化矩阵,矩阵到底长什么样?
- Naive Bayesian Method of Li Hang's "Statistical Learning Methods" Notes
- The 17th day of the special assault version of the sword offer
- 从零开始入门单片机(一):必会背景知识总结
- ConvNeXt论文及实现
- The use of thread pool and analysis of ThreadPoolExecutor source code
- 一文带你了解推荐系统常用模型及框架
猜你喜欢

理解JS的三座大山

中国发布丨滴滴因违反网络安全法等被罚80.26亿元!调查细节公布

npm ERR! 400 Bad Request - PUT xxx - Cannot publish over previously published version “1.0.0“.

Facebook's automated data analysis solution saves worry and effort in advertising

DVWA 通关记录 2 - 命令注入 Command Injection

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

node封装一个图片拼接插件

一文带你了解推荐系统常用模型及框架

向量点积(Dot Product),向量叉积(Cross Product)

Spend 2 hours a day to make up for Tencent T8, play 688 pages of SSM framework and Redis, and successfully land on Meituan
随机推荐
RPA助你玩转抖音,开启电商运营新引擎
关于缓存数据的探讨
Facebook自动化数据分析方案,广告投放省心省力
Pytorch的LSTM参数解释
百战RHCE(第四十七战:运维工程师必会技-Ansible学习2-Ansible安装配置练习环境)
每日一题练习1-15
用了TCP协议,就一定不会丢包嘛?
system_error错误处理库学习
李航《统计学习方法》笔记之k近邻法
The 17th day of the special assault version of the sword offer
js防抖函数和函数节流的应用场景
你认同这个观点吗?大多数企业的数字化都只是为了缓解焦虑
曲折的tensorflow安装过程(Tensorflow 安装问题的解决)
新“内卷”席卷科技圈,Google CEO 要求 174000 员工提高工作效率!
让电商运营10倍提效的自动化工具,你get了吗?
AutoJs学习-密码生成器
AlterNET Studio用户界面设计功能扩展
Application scenarios of js anti-shake function and function throttling
Use the scrapy to climb to save data to mysql to prevent repetition
LeetCode第三题(Longest Substring Without Repeating Characters)三部曲之一:解题思路