npm publish 文件多的情况下网络失败

发布npm 包的时候

npm 包内容少的情况下很容易提交

$ npm publish
$ gitpush@0.0.19

npm 包内容文件大的情况下经常失败,成功的机会很少

$ npm publish
npm ERR! publish Failed PUT undefined
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\\nodejs\\node.exe" "D:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "publish"
npm ERR! node v4.2.1
npm ERR! npm  v2.14.7
npm ERR! code ECONNRESET

npm ERR! network socket hang up
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 settings.
npm ERR! network
npm ERR! network 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 following file with any support request:
npm ERR!     E:\zan\coding\panli\ppt\ippt\npm-debug.log

发布npm 包的 时候 如何 不用吧文件一起发布,在别人下载 npm 包的时候 直接从 github 上下载呢

阅读 3.4k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题