当前位置:网站首页>发布模块到npm应该怎么操作?及错误问题解决方案
发布模块到npm应该怎么操作?及错误问题解决方案
2022-08-02 14:09:00 【N.S.N】
在命令行中输入npm whoami来查询是否登录
在命令行中输入npm config ls判断源是否为npm,千万不要是cnpm
如果未登录输入npm adduser进行登录,根据提示进行操作,返回Logged in as fang_haixin on https://registry.npmjs.org/.
使用npm publish发布包
如果报如下错误,则说明包名被使用了,重新定义一个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?
主要原因在于我没有在邮件里面点击链接,做确认关联操作引起的
npm ERR! 403 Forbidden you must verify your email before publishing a new package
如果npm上已经有了不少和你的包名类似的包,就会出现这个问题,在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
边栏推荐
- 语言模型(NNLM)
- 【使用Pytorch实现ResNet网络模型:ResNet50、ResNet101和ResNet152】
- It is not allowed to subscribe with a(n) xxx multiple times.Please create a fresh instance of xxx
- 系统线性、时不变、因果判断
- Must-know knowledge about disassembly
- “非图灵完备”到底意味着什么
- 投资组合理论的简单介绍
- STM32F1和F4的区别
- PyTorch⑨---卷积神经网络_线性层
- The problem that UIWindow's makeKeyAndVisible does not call viewDidLoad of rootviewController
猜你喜欢
随机推荐
PyTorch③---torchvision中数据集的使用
【我的电赛日记(一)】HMI USART串口屏
LLVM系列第三章:函数Function
PyTorch②---transforms结构及用法、常见的Transforms
执行npm install有错误error
kotlin Android序列化
LLVM系列第二十八章:写一个JIT Hello World
FP6296锂电池升压 5V9V12V内置 MOS 大功率方案原理图
13.56MHZ刷卡芯片CI521兼容cv520/ci520支持A卡B卡MIFARE协议
Ffmpeg交叉编译
FP7195大功率零压差全程无频闪调光DC-DC恒流芯片(兼容调光器:PWM调光,无极调光,0/1-10V调光)
profiler network乱码
【目标检测】YOLO v5 安全帽检测识别项目模型
LLVM系列第十八章:写一个简单的IR处理流程Pass
小T成长记-网络篇-1-什么是网络?
PyTorch①---加载数据、tensorboard的使用
流,向量场,和微分方程
内存申请(malloc)和释放(free)之下篇
AAPT: error: duplicate value for resource ‘attr/xxx‘ with config ‘‘, file failed to compile.
The overlapping effect of the two surfaceviews is similar to the video and handout practice in the live effect









