Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/39.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
Node.js 未能使用;npm发布“;_Node.js_Npm - Fatal编程技术网

Node.js 未能使用;npm发布“;

Node.js 未能使用;npm发布“;,node.js,npm,Node.js,Npm,我维护NPM包: - 最近我尝试推出新版本,但出现以下错误: npm ERR! publish Failed PUT response undefined npm ERR! Error: login error npm ERR! at RegClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:82:22) npm ERR

我维护NPM包: -

最近我尝试推出新版本,但出现以下错误:

npm ERR! publish Failed PUT response undefined  
npm ERR! Error: login error  
npm ERR!     at RegClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:82:22) 
npm ERR!     at CouchLogin.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/couch-login/couch-login.js:177:14) n## Heading ##pm ERR!     at CouchLogin.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/couch-login/couch-login.js:159:46) 
npm ERR!     at Request.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/request.js:129:22) 
npm ERR!     at Request.EventEmitter.emit (events.js:98:17)  
npm ERR!  at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:873:14) 
npm ERR!     at Request.EventEmitter.emit (events.js:117:20)  
npm ERR! at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:824:12) 
npm ERR!     at IncomingMessage.EventEmitter.emit (events.js:117:20)  
npm ERR!     at _stream_readable.js:920:16  
npm ERR! If you need help, you may report this log at:  
npm ERR!     <http://github.com/isaacs/npm/issues>  
npm ERR! or email it to:  
npm ERR!     <npm-@googlegroups.com>  
npm ERR! System Darwin 13.0.0  
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "publish"  
npm ERR! cwd /Users/arthurakay/www/PhantomLint  
npm ERR! node -v v0.10.20  
npm ERR! npm -v 1.3.11  
npm ERR!   
npm ERR! Additional logging details can be found in:  
npm ERR!     /Users/arthurakay/www/PhantomLint/npm-debug.log  
npm ERR! not ok code 0
npm错误!发布失败,未定义PUT响应
npm错误!错误:登录错误
npm错误!在RegClient。(/usr/local/lib/node_modules/npm/node_modules/npm registry client/lib/request.js:82:22)
npm错误!在CouchLogin。(/usr/local/lib/node#u modules/npm/node#u modules/npm registry client/node#u modules/coach login/coach login.js:177:14)n###Heading##pm ERR!在CouchLogin。(/usr/local/lib/node_modules/npm/node_modules/npm registry client/node_modules/coach login/coach login.js:159:46)
npm错误!at Request.self.callback(/usr/local/lib/node_modules/npm/node_modules/Request/Request.js:129:22)
npm错误!at Request.EventEmitter.emit(events.js:98:17)
npm错误!应要求。(/usr/local/lib/node_modules/npm/node_modules/request/request.js:873:14)
npm错误!at Request.EventEmitter.emit(events.js:117:20)
npm错误!在收到消息时。(/usr/local/lib/node_modules/npm/node_modules/request/request.js:824:12)
npm错误!在IncomingMessage.EventEmitter.emit(events.js:117:20)
npm错误!at_stream_readable.js:920:16
npm错误!如果需要帮助,您可以在以下位置报告此日志:
npm错误!
npm错误!或通过电子邮件发送至:
npm错误!
npm错误!达尔文系统13.0.0
npm错误!命令“/usr/local/bin/node”“/usr/local/bin/npm”“发布”
npm错误!cwd/Users/arthurakay/www/PhantomLint
npm错误!节点-v v0.10.20
npm错误!npm-V1.3.11
npm错误!
npm错误!其他日志记录详细信息可在以下位置找到:
npm错误/Users/arthurakay/www/PhantomLint/npm-debug.log
npm错误!不正常代码0
这是从我的MacOSX(Mavericks)终端使用“npm发布”


这曾经奏效。。。但我试了几个月了。有什么变化吗?还是我在本地机器上神秘地丢失了一些登录凭据?

@robertklep一针见血。npm登录是关键,尽管我不记得以前必须这么做。太好了,先生

您尝试过npm登录吗?失败。我没有。。。据我记忆所及,我以前从未这样做过。问题解决了,谢谢!不要自责。NPM的错误消息完全没有用处。如果服务器的生命依赖于它,它不会与您分享服务器所说的话。在Windows上,我得到的只是:
npm ERR!解析json时发生注册表错误
如果此操作不起作用,并且您需要手动添加您的凭据,请在此处进行说明:。