Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/406.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何使用github源代码在NPM中发布模块 我希望我的存储库可以按如下方式安装:_Javascript_Node.js_Github_Npm_Publish - Fatal编程技术网

Javascript 如何使用github源代码在NPM中发布模块 我希望我的存储库可以按如下方式安装:

Javascript 如何使用github源代码在NPM中发布模块 我希望我的存储库可以按如下方式安装:,javascript,node.js,github,npm,publish,Javascript,Node.js,Github,Npm,Publish,$npm安装git://github.com/ariellyrycs/testpublishnpm 我所做的是: 安装npm和nodejs 添加我的信息 npm set init.author.name名称 npm set init.author.email电子邮件 npm set init.author.url npm初始化。为了创建package.json。 在npm官方网页上注册 npm添加用户并插入我的信息 git提交并推送到我的新存储库 npm发布 然后我犯了这些错误: npm ERR

$npm安装git://github.com/ariellyrycs/testpublishnpm

我所做的是: 安装npm和nodejs

添加我的信息

npm set init.author.name名称 npm set init.author.email电子邮件 npm set init.author.url

npm初始化。为了创建package.json。 在npm官方网页上注册

npm添加用户并插入我的信息

git提交并推送到我的新存储库

npm发布

然后我犯了这些错误:

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基本上是告诉您不能发布,因为您在npm上没有该模块的发布权限

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