繁体   English   中英

如何使用github源在NPM中发布模块

[英]how to publish a module in NPM with github source

我希望我的存储库可以这样安装:

$ npm install git://github.com/ariellyrycs/testpublishnpm

我所做的是:

  • 安装npm和nodejs

  • 添加我的信息

    npm set init.author.name "name" npm set init.author.email "email" npm set init.author.url "url"

    • npm init 为了创建package.json。
  • 在npm官方页面上注册。

    • npm adduser并插入我的信息

    • git commitpush送到我的新存储库

    • npm publish .

然后我有那些错误:

npm ERR! publish Failed PUT 403
npm ERR! Linux 3.13.0-34-generic
npm ERR! argv "node" "/usr/local/bin/npm" "publish" "."
npm ERR! node v0.11.14-pre
npm ERR! npm  v2.1.2
npm ERR! code E403

npm上已经有一个名为ariel的模块 ,因此npm基本上是在告诉您您无法发布,因为您没有npm上该模块的发布权。

您可以尝试为模块选择其他名称。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM