Integrity check failed for "gifsicle" (computed integrity doesn't match our records, got
报错信息如下
error https://registry.npmmirror.com/gifsicle/-/gifsicle-5.3.0.tgz: Integrity check failed for "gifsicle" (computed integrity doesn't match our records, got "sha512-FJTpgdj1Ow/FITB7SVza5HlzXa+/lqEY0tHQazAJbuAdvyJtkH4wIdsR2K414oaTwRXHFLLF+tYbipj+OpYg+Q== sha1-SZcTxvHonrvDYw2jp0/bRpeRO04=")
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
解决方式
用的国内镜像地址,install 时报了如上错误信息,实际就是淘宝的镜像地址变了,导致sha校验不过。如果用的npm就给npm重新赋值一下仓库地址,yarn方式的也可以设置一下。
npm config set registry https://registry.npmmirror.com
yarn config set registry https://registry.npmmirror.com
说明:如果用的 npm 就吧 npm 的镜像地址改成 https://registry.npmmirror.com
这个原来的淘宝镜像地址是:https://registry.npm.taobao.org
或者 http://npm.taobao.org
这俩域名已经过期了。