node.js - npm 发布错误 - “npm ERR!403 403 Forbidden - 被禁止的包版本”
问题描述
我试图在没有 npm 的情况下发布我的包的新版本并收到此错误:
npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/yolo-coords - You cannot publish over the previously published versions: 1.0.4.
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy.
我的库很短,消息没有意义:
In most cases, you or one of your dependencies are requesting a package version that is forbidden by your security policy
解决方案
问题是我忘了package.json
修改版本,它是1.0.4
:
{
"name": "yolo-coords",
"version": "1.0.6"
}
推荐阅读
- php - 按总分 ASC 排序
- javascript - 从 fetch 之外的其他地方调用在 fetch 中定义的函数
- android - 在具有相同分辨率和相同 ppi 的不同制造商设备中,图标和内容显示不相似
- reactjs - 如何在reactjs中对存储在上下文api中的数据执行搜索?
- reactjs - 从 FlatList 中删除项目失败,并显示“TypeError: (0, _activities.default) is not a function”
- linux - crontab 不会执行 shell 脚本
- assembly - 当前指令旁边的 RIP 相关加载会发生什么?缓存命中?
- r - 如何将轴线更改为箭头
- javascript - 如何计算有多少
- 项目在一个
- 带有条件的标签
- 项目在一个
- php - 在卡片 wordpress 中显示页面