首页 > 解决方案 > React-native 安装所需的 CocoaPods 依赖项卡住

问题描述

我无法完成 react-native init,因为该过程一直停留在安装所需的 cocoapods 依赖项,请帮助

这是终端中显示的部分内容:

[4/4]   Building fresh packages...
success Saved lockfile.
success Saved 48 new dependencies.
├─ @babel/core@7.5.0
├─ @babel/runtime@7.5.0
├─ @react-native-community/eslint-config@0.0.5
├─ @types/eslint-visitor-keys@1.0.0
├─ @typescript-eslint/eslint-plugin@1.11.0
├─ @typescript-eslint/experimental-utils@1.11.0
├─ @typescript-eslint/parser@1.11.0
├─ @typescript-eslint/typescript-estree@1.11.0
├─ acorn-jsx@5.0.1
├─ acorn@6.2.0
├─ ajv@6.10.0
├─ babel-jest@24.8.0
├─ chardet@0.7.0
├─ doctrine@3.0.0
├─ emoji-regex@7.0.3
├─ eslint-scope@4.0.3
├─ eslint-utils@1.3.1
├─ eslint@6.0.1
├─ espree@6.0.0
├─ esquery@1.0.1
├─ external-editor@3.0.3
├─ file-entry-cache@5.0.1
├─ flat-cache@2.0.1
├─ flatted@2.0.1
├─ functional-red-black-tree@1.0.1
├─ glob-parent@3.1.0
├─ ignore@4.0.6
├─ import-fresh@3.1.0
├─ inquirer@6.4.1
├─ is-extglob@2.1.1
├─ is-glob@4.0.1
├─ jest@24.8.0
├─ json-stable-stringify-without-jsonify@1.0.1
├─ levn@0.3.0
├─ lodash.unescape@4.0.1
├─ metro-react-native-babel-preset@0.55.0
├─ optionator@0.8.2
├─ parent-module@1.0.1
├─ path-dirname@1.0.2
├─ progress@2.0.3
├─ react-refresh@0.2.0
├─ regexpp@2.0.1
├─ rxjs@6.5.2
├─ table@5.4.1
├─ text-table@0.2.0
├─ tslib@1.10.0
├─ tsutils@3.14.0
└─ write@1.0.3
✨  Done in 19.41s.
info Installing required CocoaPods dependencies

标签: react-nativecocoapods

解决方案


Installing required CocoaPods dependencies需要时间。等待大约 30 分钟对我有用。


推荐阅读