当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
PyTorch②---transforms结构及用法
使用npx -p @storybook/cli sb init安装失败,手把手搭建专属的storybook
让深度学习歇一会吧
基于无监督医学图像配准论文(1)
FP5207电池升压 5V9V12V24V36V42V大功率方案
实战美团Nuxt +Vue全家桶,服务端渲染,邮箱验证,passport鉴权服务,地图API引用,mongodb,redis等技术点
2020-02-06-快速搭建个人博客
PHY6222蓝牙5.2支持MESH组网M0内核超低功耗
NER(命名体识别)之 FLAT模型
FP7195转模拟调光技术解决智能家居调光频闪和电感噪音的原理
DP4301无线收发SUB-1G芯片兼容CC1101智能家居
Binder机制(下篇)
BLE蓝牙5.2-PHY6222系统级芯片(SoC)智能手表/手环
【使用Pytorch实现ResNet网络模型:ResNet50、ResNet101和ResNet152】
GPT2计算流程详解
机器学习---监督学习、无监督学习
vscode镜像
牛客刷题汇总(持续更新中)
小T成长记-网络篇-1-什么是网络?
使用预训练语言模型进行文本生成的常用微调策略