解决报错:m ERR! code ERR_SOCKET_TIMEOUT npm ERR! network Socket timeout npm ERR! network

解决方案:
①进行代理设置为false,如下命令

npm config set proxy false

②npm缓存清理,如下命令

npm cache verify

③再次执行npm install命令发现又报如下错误:

 Cannot read property ‘pickAlgorithm‘ of null

 然后;删除node_moudules,再清理一下缓存

npm cache clear --force
最后:

npm install,解决。

猜你喜欢

转载自blog.csdn.net/m0_46615524/article/details/130619128