当前位置:网站首页>使用npm创建并发布包时遇到的常见问题
使用npm创建并发布包时遇到的常见问题
2022-06-25 22:09:00 【wen_文文】
1.、npm publish发布包时报错403
登录自己的npm账号,查看是否已进行邮箱验证,如果未进行验证,网站最顶部会有一句提示;
我是没进行邮箱验证所以会报错,但是和网上说的未进行邮箱验证的详细报错有不同,但是报错代码都是403
2、删除指定版本:npm unpublish [email protected]版本号
3、当前的npm镜像为淘宝镜像:
切回原本的镜像源: npm config set registry https://registry.npmjs.org/
设置镜像源为淘宝镜像:npm config set registry http://registry.npm.taobao.org/
4.、修改自己的npm包之后,如果要重新发布:
npm version patch; // 更新npm发布的包版本,更新本地package.json中的版本号;
npm publish; // 发布自己的npm包
5、删除包后再次发布:发布之后发现有点问题,npm unpublish删除后进行再次发布时报错;
解决方案: 1. 修改包名
2. 等24小时后在发布同名的包
6、npm publish发布时报错:403代码;
解决方案: package.json文件中写的name名称与npm网上已有的名称重复了,需换个名称再发布;
边栏推荐
- final和static
- The simplest screen recording to GIF gadget in history, licecap, can be tried if the requirements are not high
- 期末复习【机器学习】
- 虚析构和纯虚析构及C ++实现
- Understanding of pseudo classes
- Kylin
- Tree class query component
- Doris 运维中遇到的问题
- The package name of the manifest file in the library project and the app project are not the same
- QT Chinese and English use different fonts respectively
猜你喜欢

第五章 习题(124、678、15、19、22)【微机原理】【习题】

Summary of common JDBC exceptions and error solutions

Analyse des cinq causes profondes de l'échec du développement de produits

实例:用C#.NET手把手教你做微信公众号开发(21)--使用微信支付线上收款:H5方式

final和static

第六章 习题(678)【微机原理】【习题】

如何设计产品的roadmap?
![mysql5.7版本在配置文件my.ini[mysqld]加上skip-grant-tables后无法启动](/img/b2/2b87b3cea1422e2a860f5e0e7dcc40.png)
mysql5.7版本在配置文件my.ini[mysqld]加上skip-grant-tables后无法启动

YUV444、YUV422、YUV420、YUV420P、YUV420SP、YV12、YU12、NV12、NV21

C# IO Stream 流(二)扩展类_封装器
随机推荐
mysql版本升级+数据迁移
YUV444、YUV422、YUV420、YUV420P、YUV420SP、YV12、YU12、NV12、NV21
C. Yet Another Card Deck-Educational Codeforces Round 107 (Rated for Div. 2)
Uniapp -- framework arrangement and analysis summary
Go language escape analysis complete record
解析產品開發失敗的5個根本原因
php中使用google protobuf协议环境配置
C. Fibonacci Words-April Fools Day Contest 2021
Tree class query component
Uniapp - call payment function: Alipay
Anaconda一文入门笔记
为什么Integer的比较最好使用equals
Object类常用方法
Database - mongodb
录屏转gif的好用小工具ScreenToGif,免费又好用!
Extraction system apk
Hibernate core api/ configuration file / L1 cache details
InputStream流已经关闭了,但是依旧无法delete文件或者文件夹,提示被JVM占用等
使用百度地图API在地图中设置一个覆盖物(InfoWindow),可自定义窗口内容
213.打家劫舍 II