发布于 1年前

error An unexpected error occurred: "https://registry.npm.taobao.org/react-native: tunneling sock...

执行命令 react-native init AwesomeProject

[1/4] Resolving packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.npm.taobao.org/react-native: tunneling socket could not be established, cause=Parse Error".

taobao镜像不可用 ,还原节点,执行

yarn config set registry [https://registry.npmjs.org](https://link.jianshu.com?t=https%3A%2F%2Fregistry.npmjs.org) --global

©2020 edoou.com   京ICP备16001874号-3