当前位置:网站首页>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
边栏推荐
- 第十六章 协程
- 软件测试与质量 之白盒测试
- qq邮箱日发5万邮件群发技术(qq邮箱怎样定时发送邮件)
- cococreator dynamically set sprite
- 享年94岁,图灵奖得主、计算复杂性理论先驱Juris Hartmanis逝世
- 斯皮尔曼相关系数
- Re23:读论文 How Does NLP Benefit Legal System: A Summary of Legal Artificial Intelligence
- Application scenarios of js anti-shake function and function throttling
- Use the scrapy to climb to save data to mysql to prevent repetition
- AutoJs学习-存款计算器
猜你喜欢
AutoJs学习-实现科赫雪花
后管实现面包屑功能
Facebook's automated data analysis solution saves worry and effort in advertising
QT专题:自定义部件
享年94岁,图灵奖得主、计算复杂性理论先驱Juris Hartmanis逝世
【SeaTunnel】从一个数据集成组件演化成企业级的服务
AutoJs学习-存款计算器
The use of thread pool and analysis of ThreadPoolExecutor source code
Supervised learning of Li Hang's "Statistical Learning Methods" Notes
yolov7创新点
随机推荐
npm ERR! 400 Bad Request - PUT xxx - Cannot publish over previously published version “1.0.0“.
让电商运营10倍提效的自动化工具,你get了吗?
Two-dimensional array piecemeal knowledge sorting
日元疲软令游戏机在日本变身“理财产品”:黄牛大赚
Using the TCP protocol, will there be no packet loss?
Re22:读论文 HetSANN An Attention-based Graph Neural Network for Heterogeneous Structural Learning
QT专题:自定义部件
瑞萨RZ/G2L处理器详细测评
未知内容监控
Daily practice of dynamic programming (2)
The heavyweights are coming!Spoilers for the highlights of the Alibaba Cloud Life Science and Intelligent Computing Summit
【Redis】Jedis
【SeaTunnel】从一个数据集成组件演化成企业级的服务
练习-17
软件测试H模型
从零开始入门单片机(一):必会背景知识总结
Facebook自动化数据分析方案,广告投放省心省力
net start mysql MySQL 服务正在启动 . MySQL 服务无法启动。 服务没有报告任何错误。
【Redis】通用命令
leetcode:639. 解码方法 II