老师,npm install -g webpack执行没反应
老师,我node.js、npm都装了,执行npm install -g webpack 一直没有反应,是什么情况?
老师,我node.js、npm都装了,执行npm install -g webpack 一直没有反应,是什么情况?
2017-04-04
先使用 npm install -g cnpm --registry=https://registry.npm.taobao.org安装完成之后,用cnpm install -g webpack 出现这样的错误
$ cnpm install -g webpack
C:\Users\iuyiy\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\node_modules\tar\lib\parse.js:33
const gzipHeader = Buffer.from([0x1f, 0x8b])
^
TypeError: this is not a typed array.
at Function.from (native)
at Object.<anonymous> (C:\Users\iuyiy\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\node_modules\tar\lib\parse.js:33:27)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (C:\Users\iuyiy\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\node_modules\tar\lib\list.js:10:16)
at Module._compile (module.js:409:26)
举报