npm pblish failed

1237 ワード

when publish my pakacge,problm oucored. here is the stacktrace info
npm ERRpublish Failed PUT undefined npm ERR!Windows_NT 6.1.7601 npm ERR!argv「D:\Program Files\odejs\ode.exe」「D:\Program Files\odejs\                                                   nodemoodules\pm\bin\pm-cli.js“”publish“npm ERR!node v 4.0.0 npm ERR!npm v 2.4.2 npm ERRcode ECONRESET npm ERR!errno ECONRESET npm ERR!sysscall read npm ERR!network read ECONRESET npm ERR!network This is most likely not a problem with npm itself npm ERR!network and is related to network connectivity.npm ERR!network In most cases you are behind a proxy or have bad network settin                                                   gs.npm ERRnetwork npm ERRnetwork If you are behind a proxy,please make sure that the npm ERR!network'proxy'config is set properly. See:'npm help config'npm ERR!Please include the follwing file with any support request:npm ERR!    E:\ltcrm\trunk\ltcrm-componentspm-debug.log
How to solive
アメリカ
npm config set registry http://registry.npmjs.org/
so that npm requests for http url instead of https.
and then try the same npm install command