C:\Users\you name>npm cache cleannpm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead. On
当出现这个问题时npm ERR! Unexpected end of JSON input while parsing near '...,"dist":{"shasum":"b3' 使用 npm cache clean --force解决 存中之前已经备份的模块实现离线模块安装的的 cache 机制已经在V5的时候重写了
C:\Users\you name>npm cache cleannpm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead. On
今天同事给了一个webpack的项目,我拿过来,npm install 突然出现报错了,并且报了一个奇怪的错误, 如下所示, Unexpected end of JSON input while parsing near ‘--- “https:// github.com/w”’, 安装依赖从来没有失败过,我就和同事说了一下,是不是项目的依赖有问题,他说没有问题,他的项目都已经跑起来,问了一下其它同事,他们安装也没有这样的问题,这就有点无奈了,只有我一个人有问题.为了排查是哪个依赖有问题,我把