尝试使用create-react-native-app,但在这里遇到了第一个障碍。
我认为问题出在Yarn试图安装依赖项时:
yarn install v0.27.5
[1/4] Resolving packages...
warning react-native > connect@2.30.2: connect 2.x series is deprecated
error An unexpected error occurred: "https://raw.githubusercontent.com/expo/node-websql/e364fa65146a9e2157a19e5c719e7702c2b6b87a/package.json: connect ETIMEDOUT 90.207.238.183:443".
info If you think this is a bug, please open a bug report with the information provided in "D:\\users\\jamie\\WebstormProjects\\hang\\hang-app\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.安装失败
奇怪的是,我上周在这台机器上运行了create-react-native-app来测试它,结果一切正常。
有没有人知道这里可能发生了什么?
发布于 2017-09-25 19:33:30
错误消息在第4行的末尾显示:connect ETIMEDOUT,我认为这意味着Yarn在下载package.json文件时超时。
我刚刚尝试将URL粘贴到我的浏览器中,它加载了,所以如果你再试一次,它可能会正常工作!
https://stackoverflow.com/questions/46403673
复制相似问题