关于报错An unexpected error occurred: "https://registry.yarnpkg.com/react: socket hang up".

报错.png

关于报错An unexpected error occurred: "https://registry.yarnpkg.com/react: socket hang up".

解决方法:换源

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

你可能感兴趣的:(关于报错An unexpected error occurred: "https://registry.yarnpkg.com/react: socket hang up".)