react-native init AwesomeProject挂起

时间:2016-03-12 18:46:59

标签: react-native

我有新的反应,我尝试使用react-native init AwesomeProject进行初始化,但几分钟后反应似乎已挂起

npm verb addTmpTarball already have metadata; skipping unpack for babylon@5.8.35
npm verb correctMkdir /Users/dramirez/.npm correctMkdir not in flight; initializing
npm verb afterAdd /Users/dramirez/.npm/babylon/5.8.35/package/package.json not in flight; writing
npm verb correctMkdir /Users/dramirez/.npm correctMkdir not in flight; initializing
npm verb afterAdd /Users/dramirez/.npm/babylon/5.8.35/package/package.json written
npm http fetch 200 https://registry.npmjs.org/bluebird/-/bluebird-2.10.2.tgz
npm verb addTmpTarball /var/folders/kr/js5391j510v9962s56x6c9rw0000gn/T/npm-22068-e178ea9f/registry.npmjs.org/bluebird/-/bluebird-2.10.2.tgz not in flight; adding
npm verb addTmpTarball already have metadata; skipping unpack for bluebird@2.10.2
npm verb correctMkdir /Users/dramirez/.npm correctMkdir not in flight; initializing
npm verb afterAdd /Users/dramirez/.npm/bluebird/2.10.2/package/package.json not in flight; writing
npm verb correctMkdir /Users/dramirez/.npm correctMkdir not in flight; initializing
npm verb afterAdd /Users/dramirez/.npm/bluebird/2.10.2/package/package.json written
loadDep:try-resolve → net ▌ ╢███████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟

我不在中国,我不知道该怎么办?

4 个答案:

答案 0 :(得分:0)

它总是挂在同一个包装上吗?有一个选项你可以传递到react-native start,我认为它的reset-cache,也许会有所帮助

答案 1 :(得分:0)

几个小时后我决定重新启动计算机并重新启动它,现在它正在运行;-(这很烦人)

答案 2 :(得分:-1)

试试这个:

react-native init ProjectName --verbose

它对我有用。

答案 3 :(得分:-1)

VPN将解决该问题;根据我的经验。