当前位置:网站首页>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
边栏推荐
- mysql进阶(二十一)删除表数据与数据库四大特性
- 新“内卷”席卷科技圈,Google CEO 要求 174000 员工提高工作效率!
- Use compilation to realize special effects of love
- Talk about the understanding of Volatile
- 周鸿祎称微软抄袭 360 安全模式后发文否认;英特尔CEO基辛格回应市值被AMD超越:股价下跌是咎由自取|极客头条...
- iNFTnews | 看见元宇宙的两面,何谓全真互联网和价值互联网?
- DVWA 通关记录 2 - 命令注入 Command Injection
- 练习-17
- Tencent T8 architect, teach you to learn small and medium R&D team architecture practice PDF, senior architect shortcut
- 转转反爬攻防战
猜你喜欢

你认同这个观点吗?大多数企业的数字化都只是为了缓解焦虑

Two-dimensional array piecemeal knowledge sorting

Application scenarios of js anti-shake function and function throttling

Spend 2 hours a day to make up for Tencent T8, play 688 pages of SSM framework and Redis, and successfully land on Meituan

leetcode:639. 解码方法 II

1对1视频源码——快速实现短视频功能提升竞争力

HikariCP database connection pool, too fast!

稳定币:对冲基金做空 Tether 的结局会是什么?

李航《统计学习方法》笔记之监督学习Supervised learning

npm ERR! 400 Bad Request - PUT xxx - Cannot publish over previously published version “1.0.0“.
随机推荐
阿里巴巴 CTO 程立:开源是基础软件的源头!
第十七章 Excel操作
AutoJs学习-实现谢尔宾斯基三角
Redis数据结构
YugaByte adds Voyager migration service in its 2.15 database update
Have you ever learned about these architecture designs and architecture knowledge systems?(Architecture book recommendation)
【New Edition】DeepFakes: Creation, Detection and Influence
在全志V853开发板试编译QT测试
曲折的tensorflow安装过程(Tensorflow 安装问题的解决)
In the whole development of chi V853 board tried to compile QT test
This article takes you to understand the commonly used models and frameworks of recommender systems
从零开始入门单片机(一):必会背景知识总结
享年94岁,图灵奖得主、计算复杂性理论先驱Juris Hartmanis逝世
R语言使用zoo包中的rollapply函数以滚动的方式、窗口移动的方式将指定函数应用于时间序列、设置align参数指定结果数据中的时间标签取自窗口中的位置(参数right指定取自窗口的最右侧)
HikariCP数据库连接池,太快了!
理解JS的三座大山
npm ERR! 400 Bad Request - PUT xxx - Cannot publish over previously published version “1.0.0“.
带你认识40G单纤双向光模块-QSFP+ BiDi光模块
leetcode:639. 解码方法 II
Daily practice of dynamic programming (2)