node:npm命令报错Node error npm ERR! cb() never called

问题:

        在win7进行nodejs.zip的解压和覆盖安装,使用npm出现报错

       

npm WARN tar zlib error: unexpected end of file
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     

npm ERR! A complete log of this run can be found in:

解决方法:

       zip方式升级nodejs,不应该拷贝覆盖,最好是直接删除原来的内容,全部替换

你可能感兴趣的:(npm,前端,node.js)