我试图发布我的包的新版本(没有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.
我的lib很短,消息没有意义:
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"
}