您当前的位置: 首页 >  ar

xingxin666.eth

暂无认证

  • 0浏览

    0关注

    91博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

解决yarn错误error An unexpected error occurred: “https://registry.yarnpkg.com/hardhat: ETIMEDOUT“.

xingxin666.eth 发布时间:2022-06-17 13:37:11 ,浏览量:0

在使用yarn安装依赖包时报错,提示信息:error An unexpected error occurred: “https://registry.yarnpkg.com/hardhat: ETIMEDOUT”.

这是由于资源地址请求超时造成的,更换一下请求地址即可。

解决方案:

运行命令,把资源地址设置成npm淘宝源

npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist

删除代理

npm config rm proxy 
npm config rm https-proxy

对node-sass镜像源进行设置

yarn config set sass-binary-site http://npm.taobao.org/mirrors/node-sass

npm config set sass-binary-site http://npm.taobao.org/mirrors/node-sass
关注
打赏
1663729395
查看更多评论
立即登录/注册

微信扫码登录

0.0375s