yarn 安装进行时,显现错误 node_modules\gifsicle: Command failed.
错误详情如下
解决办法:
- 在 package.json 文件中 配置忽略该错误
"resolutions": {
"//": "Used to install imagemin dependencies, because imagemin may not be installed in China. If it is abroad, you can delete it",
"bin-wrapper": "npm:bin-wrapper-china",
"rollup": "^2.72.0"
}
- yarn设置代理
yarn config list
// ID & Passなし
yarn config set proxy http://example.com:port -g
// ID & Passあり
yarn config set proxy http://username:password@host:port -g
// ID & Passなし
yarn config set https-proxy http://example.com:port -g
// ID & Passあり
yarn config set https-proxy http://username:password@host:port -g
// 设置proxy
yarn config set https-proxy http://127.0.0.1:7890
yarn config set proxy http://127.0.0.1:7890
// 查看proxy
yarn config get https-proxy
yarn config get proxy
配置代理没成功!!!