
一直在报如上错误,试了很多办法,比如删掉yarn.lock,yarn cache clean,删掉node_modules,rm proxy等等都没有用
甚至于重启电脑,然而并没有什么用
突然间想到,我用了clash for window
所以想了下,应该要设置proxy
先查电脑的ip
cmd --> ipconfig

然后设置proxy
yarn config set proxy http://192.168.110.119:7890
yarn config set https-proxy http://192.168.110.119:7890
yarn install不再超时了,也不再报错了

后来回想了一下,之前也遇到过类似的问题(https://blog.csdn.net/weixin_41886421/article/details/134864070)
故此问题可以不止一种解法,还是要特定事情特地分析,最好知道其原理及原因,对症下药。
纸上得来终觉浅,绝知此事要躬行,大家共勉



















