当在Windows环境中使用npm install或者yarn 安装依赖时,可能会出现如下类似的错误: MSBUILD : error MSB4132: The tools version "2.0" is unrecognized. Available tools versions are "4.0". 或者: MSBUILD : error MSB4132: The tools version "2.0" is unrecognized. A
今天碰到了一个比较奇怪的问题,下载依赖有问题报错 npm ERR! code Z_BUF_ERROR npm ERR! errno -5 npm ERR! zlib: unexpected end of file npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-12-26T04_21_54_001Z-d
npm ERR! Unexpected end of JSON input while parsing near '...2.4.8","karma":"~0.10' 如上:我们在终端用npm install 安装依赖时,有时会报上述错误. 解决方法: 清除缓存 npm cache clean --force