[英]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 commit
并push
送到我的新存储库
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.