cnpm安装依赖报错,node版本8.1,npm版本4.3

$ cnpm i
[opn@4.0.2] download Error: incorrect header check (opn@4.0.2) (C:Userszx.npminstall_tarballopnopn4.0.2-7abc22e644dff63b0a96d5ab7f2790c0f01abc95.tgz), fail count: 1
[opn@4.0.2] tgz format ungzip error, try to use tar format
(node:11032) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 open listeners added. Use emitter.setMaxListeners() to increase limit
× Install fail! Error: invalid tar file (opn@4.0.2) (C:Userszx.npminstall_tarballopnopn4.0.2-7abc22e644dff63b0a96d5ab7f2790c0f01abc95.tgz)
Error: invalid tar file (opn@4.0.2) (C:Userszx.npminstall_tarballopnopn4.0.2-7abc22e644dff63b0a96d5ab7f2790c0f01abc95.tgz)

at Extract.Parse._startEntry (C:\Program Files\nodejs\node_modules\cnpm\node_modules\tar\lib\parse.js:149:13)
at Extract.Parse._process (C:\Program Files\nodejs\node_modules\cnpm\node_modules\tar\lib\parse.js:131:12)
at BlockStream.<anonymous> (C:\Program Files\nodejs\node_modules\cnpm\node_modules\tar\lib\parse.js:47:8)
at emitOne (events.js:115:13)
at BlockStream.emit (events.js:210:7)
at BlockStream._emitChunk (C:\Program Files\nodejs\node_modules\cnpm\node_modules\block-stream\block-stream.js:145:10)
at BlockStream.resume (C:\Program Files\nodejs\node_modules\cnpm\node_modules\block-stream\block-stream.js:58:15)
at Extract.Reader.resume (C:\Program Files\nodejs\node_modules\cnpm\node_modules\fstream\lib\reader.js:249:34)
at DirWriter.<anonymous> (C:\Program Files\nodejs\node_modules\cnpm\node_modules\tar\lib\extract.js:64:8)
at emitNone (events.js:105:13)
at DirWriter.emit (events.js:207:7)

npminstall version: 3.0.1
npminstall args: C:Program Filesnodejsnode.exe C:Program Filesnodejsnode_modulescnpmnode_modulesnpminstallbininstall.js –china –userconfig=C:Userszx.cnpmrc –disturl=https://npm.taobao.org/mirror… –registry=http://registry.npm.taobao.org

  • 原生node如何输出页面?能否像php模版那样输出页面呢?或者用readFile这样的方法来获取文件内容然后输出吗?
  • webpack1和webpack2有什么区别?
  • 延迟加载的这段代码哪里有问题呢?
  • mongodb存时间为date类型,js如何实现查询历史日期功能?
  • angularjs div contentEditable 双向绑定无效
  • 用 npm install -g karma 安装 Karma 报错:events.js:72 throw er
  • nodejs和gulp一起使用碰到的问题?
  • 如何获取HTML的高度?
  • JavaScript实例化对象
  • 脚本从windows上传到linux无法执行
  • weex安装报错