当前位置:网站首页>使用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网上已有的名称重复了,需换个名称再发布;
边栏推荐
猜你喜欢

中序线索二叉树

解析產品開發失敗的5個根本原因

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

line-height小用
![mysql5.7版本在配置文件my.ini[mysqld]加上skip-grant-tables后无法启动](/img/b2/2b87b3cea1422e2a860f5e0e7dcc40.png)
mysql5.7版本在配置文件my.ini[mysqld]加上skip-grant-tables后无法启动

如何设计产品的roadmap?

final和static

Line height for small use

UE4 learning record 2 adding skeleton, skin and motion animation to characters

1.8 billion pixel Mars panorama Ultra HD released by NASA, very shocking
随机推荐
The InputStream stream has been closed, but the file or folder cannot be deleted, indicating that it is occupied by the JVM
中序线索二叉树
史上最简单的录屏转gif小工具LICEcap,要求不高可以试试
Hibernate entity class curd, transaction operation summary
4个要点,助力产品管好项目
.user.ini文件导致的php网站安装问题
Uniapp -- list page of multi header tabs
Gradle的环境安装与配置
Customize the qcombobox drop-down box, right align the display, and slide the drop-down list
PHP interprocess pass file descriptor
Spark日志分析
Jenkins releases PHP project code
Qtcreator formatting code
A. Balance the Bits--Codeforces Round #712 (Div. 1)
格式化编号,不够位数的补0,例如1:0001,25:0025
php中使用google protobuf协议环境配置
Can I upload pictures without deploying the server?
Uniapp -- the use of document collation and push of unipush
mongodb
Extraction system apk