安装npm 5.0+之后npm install时会出现如下错误:
npm ERR! code EINTEGRITYnpm ERR! sha512-75r5nVhCLJybAyk+2VStFXpoUvEh+M/QmvrewUZSjiwrUyRfZ/3poRyysbsVDL6GjUhpD7sGrR252Y9Ab5i67Q== integrity checksum failed when using sha512: wanted sha512-75r5nVhCLJybAyk+2VStFXpoUvEh+M/QmvrewUZSjiwrUyRfZ/3poRyysbsVDL6GjUhpD7sGrR252Y9Ab5i67Q== but got sha512-M6SEcQavxbxmGlTw9888v5uvm0CB7vjAkf/SEtfyEXOW019L8/MZktPRBMtUX6xjCe/a9AMschcgfG0KRGQdxQ==. (4128768 bytes)npm ERR! A complete log of this run can be found in:npm ERR! C:\Users\James Zhang\AppData\Roaming\npm-cache\_logs\2017-09-05T06_25_23_883Z-debug.log
解决方法:
执行
npm config set registry http://registry.cnpmjs.org/然后即可成功npm install