使用create-react-native-app发生意外错误:

时间:2017-09-25 11:03:10

标签: reactjs react-native yarnpkg

尝试使用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来测试它,一切都很好。

有没有人知道这里会发生什么?

1 个答案:

答案 0 :(得分:0)

错误消息显示在第4行的末尾:connect ETIMEDOUT,我认为这意味着Yarn在下载package.json文件时超时。

我只是尝试在浏览器中粘贴网址并加载,所以如果你再试一次它可能会起作用!

相关问题