当前位置:网站首页>Publish module to NPM should be how to operate?Solutions to problems and mistake
Publish module to NPM should be how to operate?Solutions to problems and mistake
2022-08-02 15:21:00 【N.S.N】
Enter npm whoami
in the command line to check if you are logged in
Enter npm config ls
in the command line to determine whether the source is npm, not cnpm
If you are not logged in, enter npm adduser
to log in, follow the prompts and returnLogged in as fang_haixin on https://registry.npmjs.org/.
Use npm publish
to publish the package
If the following error is reported, it means that the package name is used, redefine a name
403 Forbidden - PUT https://registry.npmjs.org/roadsign - You do not have permission to publish "roadsign". Are you logged in as the correct user?
The main reason is that I did not click the link in the email to confirm the association operation
npm ERR! 403 Forbidden you must verify your email before publishing a new package
If there are already a lot of packages with similar names to yours on npm, this problem will occur, just modify your package name in package.json
PUT https://registry.npmjs.org/road-sign - Package name too similar to existing packages; try renaming your package to '@fang_haixin/road-sign' and publishing with 'npm publish --access=public' instead
边栏推荐
猜你喜欢
随机推荐
神经网络的设计过程
LLVM系列第二十四章:用Xcode编译调试LLVM源码
CI24R1小模块2.4G收发模块无线通信低成本兼容si24r1/XN297超低功耗
关系代数、SQL与逻辑式语言
2020-02-06-快速搭建个人博客
Win10上帝模式干嘛的?Win10怎么开启上帝模式?
【使用Pytorch实现VGG16网络模型】
神经网络可以解决一切问题吗:一场知乎辩论的整理
PyTorch⑤---卷积神经网络_卷积层
BLE蓝牙5.2-PHY6222系统级芯片(SoC)智能手表/手环
vscode镜像
7. How to add the Click to RecyclerView and LongClick events
LLVM系列第二十七章:理解IRBuilder
内存申请(malloc)和释放(free)之上篇
Kubernetes资源编排系列之三: Kustomize篇
Win11没有本地用户和组怎么解决
FP7195芯片PWM转模拟调光至0.1%低亮度时恒流一致性的控制原理
win10无法直接用照片查看器打开图片怎么办
GICv3/v4-软件概述
PyTorch②---transforms结构及用法