使用 npm 发布包时出现错误 402

编程入门 行业动态 更新时间:2024-10-15 16:20:12
本文介绍了使用 npm 发布包时出现错误 402的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在 ubuntu 14.04 上使用 npm 版本 2.15.11 和节点版本 4.7.2.我想发布我的包.当我使用命令时:

npm 发布

我收到错误消息:您需要付费帐户才能执行此操作.更多信息,请访问:

请为我提供解决此问题的解决方案.提前致谢.

解决方案

运行

npm publish --access=public

第一次发布范围包.

默认访问设置是私有的,但为此您需要一个付费帐户.因此出现错误消息.

I am using npm version 2.15.11 and node version 4.7.2 on ubuntu 14.04. I want to publish my packages. when i use the command:

npm publish

i am geting the error: You need a paid account to perform this action. For more info, visit: www.npmjs/private-modules

Below is the screenshot of error:

Please provide me the solution to overcome this issue. Thanks in advance.

解决方案

Run

npm publish --access=public

the first time you publish a scoped package.

The default access setting is private, but for this you need a paid account. Hence the error message.

更多推荐

使用 npm 发布包时出现错误 402

本文发布于:2023-11-26 22:02:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1635374.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:出现错误   布包   npm

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!