question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cli keep telling me that cocoapods is not installed

See original GitHub issue

Environment

🌏 All envs:

Last login: Wed May  4 11:48:44 on ttys000
➜  ~ npx react-native doctor                    
β ‡ Running diagnostics...
warn We couldn't find a package.json in this directory. Android SDK checks may fail. Doctor works best in a React Native project root.
Common
 βœ“ Node.js
 βœ“ yarn
 βœ“ npm
 βœ– Watchman - Used for watching changes in the filesystem when in development mode
   - Version found: 2022.03.21.00
   - Version supported: 4.x

Android
 βœ“ JDK
 βœ“ Android Studio - Required for building and installing your app on Android
 βœ– Android SDK - Required for building and installing your app on Android
   - Versions found: N/A
   - Version supported: Not Found
 βœ“ ANDROID_HOME

iOS
 βœ“ Xcode - Required for building and installing your app on iOS
 βœ“ CocoaPods - Required for installing iOS dependencies
 ● ios-deploy - Required for installing your app on a physical device with the CLI

Errors:   2
Warnings: 1

Usage
 β€Ί Press f to try to fix issues.
 β€Ί Press e to try to fix errors.
 β€Ί Press w to try to fix warnings.
 β€Ί Press Enter to exit.
➜  ~ pod --version
1.11.3
➜  ~ gem info cocoapods

*** LOCAL GEMS ***

cocoapods (1.11.3)
    Authors: Eloy Duran, Fabio Pelosin, Kyle Fuller, Samuel Giddins
    Homepage: https://github.com/CocoaPods/CocoaPods
    License: MIT
    Installed at: /Users/WangCe/.rvm/gems/ruby-2.7.6

    The Cocoa library package manager.
➜  ~ brew list
==> Formulae
autoconf		double-conversion	folly			icu4c			libtool			openssl@1.1		snappy			zlib
automake		fb303			gdbm			libevent		libyaml			pcre			sqlite			zstd
boost			fbthrift		gflags			libgpg-error		lz4			pkg-config		wangle
ca-certificates		fizz			glog			libksba			m4			python@3.10		watchman
coreutils		fmt			gmp			libsodium		mpdecimal		readline		xz
➜  ~ 

πŸ€” What react-native-cli said:

Last login: Wed May  4 11:46:37 on ttys000
➜  ~ npx react-native init ProjectName --verbose
debug We couldn't find a package.json in your project. Are you sure you are running it inside a React Native project?
debug Failed to load configuration of your project. Only a subset of commands will be available.
debug Initializing new project
                                                          
               ######                ######               
             ###     ####        ####     ###             
            ##          ###    ###          ##            
            ##             ####             ##            
            ##             ####             ##            
            ##           ##    ##           ##            
            ##         ###      ###         ##            
             ##  ########################  ##             
          ######    ###            ###    ######          
      ###     ##    ##              ##    ##     ###      
   ###         ## ###      ####      ### ##         ###   
  ##           ####      ########      ####           ##  
 ##             ###     ##########     ###             ## 
  ##           ####      ########      ####           ##  
   ###         ## ###      ####      ### ##         ###   
      ###     ##    ##              ##    ##     ###      
          ######    ###            ###    ######          
             ##  ########################  ##             
            ##         ###      ###         ##            
            ##           ##    ##           ##            
            ##             ####             ##            
            ##             ####             ##            
            ##          ###    ###          ##            
             ###     ####        ####     ###             
               ######                ######               
                                                          

                  Welcome to React Native!                
                 Learn once, write anywhere               

debug Installing template from react-native@latest
yarn init v1.22.15
warning The yes flag has been set. This will automatically answer yes to all questions, which may have security implications.
success Saved package.json
✨  Done in 0.03s.
yarn add v1.22.15
info No lockfile found.
[1/4] πŸ”  Resolving packages...
warning react-native > @react-native-community/cli > @react-native-community/cli-plugin-metro > metro > metro-minify-uglify > uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
warning "react-native > metro-react-native-babel-transformer@0.67.0" has unmet peer dependency "@babel/core@*".
warning "react-native > react-shallow-renderer@16.14.1" has unmet peer dependency "react@^16.0.0 || ^17.0.0".
warning "react-native > use-subscription@1.5.1" has unmet peer dependency "react@^16.8.0 || ^17.0.0".
warning "react-native > react-native-codegen > jscodeshift@0.13.1" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning " > react-native@0.68.1" has unmet peer dependency "react@17.0.2".
[4/4] πŸ”¨  Building fresh packages...

success Saved lockfile.
success Saved 379 new dependencies.
info Direct dependencies
└─ react-native@0.68.1
info All dependencies
β”œβ”€ @ampproject/remapping@2.2.0
β”œβ”€ @babel/compat-data@7.17.10
β”œβ”€ @babel/helper-builder-binary-assignment-operator-visitor@7.16.7
β”œβ”€ @babel/helper-compilation-targets@7.17.10
β”œβ”€ @babel/helper-create-regexp-features-plugin@7.17.0
β”œβ”€ @babel/helper-explode-assignable-expression@7.16.7
β”œβ”€ @babel/helper-hoist-variables@7.16.7
β”œβ”€ @babel/helper-member-expression-to-functions@7.17.7
β”œβ”€ @babel/helper-module-imports@7.16.7
β”œβ”€ @babel/helper-plugin-utils@7.16.7
β”œβ”€ @babel/helper-remap-async-to-generator@7.16.8
β”œβ”€ @babel/helper-wrap-function@7.16.8
β”œβ”€ @babel/helpers@7.17.9
β”œβ”€ @babel/highlight@7.17.9
β”œβ”€ @babel/plugin-proposal-class-properties@7.16.7
β”œβ”€ @babel/plugin-proposal-export-default-from@7.16.7
β”œβ”€ @babel/plugin-proposal-nullish-coalescing-operator@7.16.7
β”œβ”€ @babel/plugin-proposal-optional-catch-binding@7.16.7
β”œβ”€ @babel/plugin-proposal-optional-chaining@7.16.7
β”œβ”€ @babel/plugin-syntax-class-properties@7.12.13
β”œβ”€ @babel/plugin-syntax-dynamic-import@7.8.3
β”œβ”€ @babel/plugin-syntax-export-default-from@7.16.7
β”œβ”€ @babel/plugin-syntax-flow@7.16.7
β”œβ”€ @babel/plugin-syntax-jsx@7.16.7
β”œβ”€ @babel/plugin-syntax-nullish-coalescing-operator@7.8.3
β”œβ”€ @babel/plugin-syntax-object-rest-spread@7.8.3
β”œβ”€ @babel/plugin-syntax-optional-catch-binding@7.8.3
β”œβ”€ @babel/plugin-syntax-optional-chaining@7.8.3
β”œβ”€ @babel/plugin-syntax-typescript@7.17.10
β”œβ”€ @babel/plugin-transform-async-to-generator@7.16.8
β”œβ”€ @babel/plugin-transform-block-scoped-functions@7.16.7
β”œβ”€ @babel/plugin-transform-exponentiation-operator@7.16.7
β”œβ”€ @babel/plugin-transform-flow-strip-types@7.16.7
β”œβ”€ @babel/plugin-transform-member-expression-literals@7.16.7
β”œβ”€ @babel/plugin-transform-modules-commonjs@7.17.9
β”œβ”€ @babel/plugin-transform-object-assign@7.16.7
β”œβ”€ @babel/plugin-transform-object-super@7.16.7
β”œβ”€ @babel/plugin-transform-parameters@7.16.7
β”œβ”€ @babel/plugin-transform-property-literals@7.16.7
β”œβ”€ @babel/plugin-transform-react-jsx-self@7.16.7
β”œβ”€ @babel/plugin-transform-react-jsx-source@7.16.7
β”œβ”€ @babel/plugin-transform-regenerator@7.17.9
β”œβ”€ @babel/plugin-transform-runtime@7.17.10
β”œβ”€ @babel/plugin-transform-sticky-regex@7.16.7
β”œβ”€ @babel/plugin-transform-typescript@7.16.8
β”œβ”€ @babel/plugin-transform-unicode-regex@7.16.7
β”œβ”€ @babel/preset-flow@7.16.7
β”œβ”€ @babel/preset-typescript@7.16.7
β”œβ”€ @babel/register@7.17.7
β”œβ”€ @babel/runtime@7.17.9
β”œβ”€ @babel/traverse@7.17.10
β”œβ”€ @hapi/topo@5.1.0
β”œβ”€ @jest/create-cache-key-function@27.5.1
β”œβ”€ @jridgewell/resolve-uri@3.0.6
β”œβ”€ @jridgewell/set-array@1.1.0
β”œβ”€ @jridgewell/trace-mapping@0.3.9
β”œβ”€ @react-native-community/cli-hermes@6.3.0
β”œβ”€ @react-native-community/cli-platform-android@7.0.1
β”œβ”€ @react-native-community/cli-platform-ios@7.0.1
β”œβ”€ @react-native-community/cli-plugin-metro@7.0.3
β”œβ”€ @react-native-community/cli-types@6.0.0
β”œβ”€ @react-native-community/cli@7.0.3
β”œβ”€ @react-native/assets@1.0.0
β”œβ”€ @react-native/normalize-color@2.0.0
β”œβ”€ @react-native/polyfills@2.0.0
β”œβ”€ @sideway/address@4.1.4
β”œβ”€ @sideway/formula@3.0.0
β”œβ”€ @sideway/pinpoint@2.0.0
β”œβ”€ @types/graceful-fs@4.1.5
β”œβ”€ @types/istanbul-lib-coverage@2.0.4
β”œβ”€ @types/istanbul-lib-report@3.0.0
β”œβ”€ @types/yargs@16.0.4
β”œβ”€ abort-controller@3.0.0
β”œβ”€ accepts@1.3.8
β”œβ”€ anser@1.4.10
β”œβ”€ ansi-fragments@0.2.1
β”œβ”€ ansi-regex@5.0.1
β”œβ”€ anymatch@3.1.2
β”œβ”€ argparse@1.0.10
β”œβ”€ arr-flatten@1.1.0
β”œβ”€ array-filter@0.0.1
β”œβ”€ array-map@0.0.0
β”œβ”€ array-reduce@0.0.0
β”œβ”€ asap@2.0.6
β”œβ”€ assign-symbols@1.0.0
β”œβ”€ ast-types@0.14.2
β”œβ”€ astral-regex@1.0.0
β”œβ”€ async-limiter@1.0.1
β”œβ”€ async@2.6.4
β”œβ”€ atob@2.1.2
β”œβ”€ babel-core@7.0.0-bridge.0
β”œβ”€ babel-plugin-dynamic-import-node@2.3.3
β”œβ”€ babel-plugin-polyfill-corejs2@0.3.1
β”œβ”€ babel-plugin-polyfill-corejs3@0.5.2
β”œβ”€ babel-plugin-polyfill-regenerator@0.3.1
β”œβ”€ babel-plugin-syntax-trailing-function-commas@7.0.0-beta.0
β”œβ”€ balanced-match@1.0.2
β”œβ”€ base@0.11.2
β”œβ”€ base64-js@1.5.1
β”œβ”€ big-integer@1.6.51
β”œβ”€ bl@4.1.0
β”œβ”€ bplist-creator@0.1.0
β”œβ”€ bplist-parser@0.3.1
β”œβ”€ brace-expansion@1.1.11
β”œβ”€ braces@2.3.2
β”œβ”€ browserslist@4.20.3
β”œβ”€ bser@2.1.1
β”œβ”€ buffer-from@1.1.2
β”œβ”€ buffer@5.7.1
β”œβ”€ bytes@3.0.0
β”œβ”€ cache-base@1.0.1
β”œβ”€ call-bind@1.0.2
β”œβ”€ caller-callsite@2.0.0
β”œβ”€ caller-path@2.0.0
β”œβ”€ callsites@2.0.0
β”œβ”€ camelcase@5.3.1
β”œβ”€ caniuse-lite@1.0.30001335
β”œβ”€ ci-info@2.0.0
β”œβ”€ class-utils@0.3.6
β”œβ”€ cli-cursor@2.1.0
β”œβ”€ cli-spinners@2.6.1
β”œβ”€ cliui@6.0.0
β”œβ”€ clone-deep@4.0.1
β”œβ”€ clone@1.0.4
β”œβ”€ collection-visit@1.0.0
β”œβ”€ color-convert@2.0.1
β”œβ”€ color-name@1.1.4
β”œβ”€ colorette@1.4.0
β”œβ”€ command-exists@1.2.9
β”œβ”€ commander@2.20.3
β”œβ”€ commondir@1.0.1
β”œβ”€ compressible@2.0.18
β”œβ”€ compression@1.7.4
β”œβ”€ concat-map@0.0.1
β”œβ”€ convert-source-map@1.8.0
β”œβ”€ copy-descriptor@0.1.1
β”œβ”€ core-js-compat@3.22.4
β”œβ”€ core-util-is@1.0.3
β”œβ”€ cosmiconfig@5.2.1
β”œβ”€ cross-spawn@6.0.5
β”œβ”€ dayjs@1.11.1
β”œβ”€ debug@2.6.9
β”œβ”€ decode-uri-component@0.2.0
β”œβ”€ deepmerge@3.3.0
β”œβ”€ defaults@1.0.3
β”œβ”€ define-properties@1.1.4
β”œβ”€ denodeify@1.2.1
β”œβ”€ deprecated-react-native-prop-types@2.3.0
β”œβ”€ destroy@1.2.0
β”œβ”€ electron-to-chromium@1.4.132
β”œβ”€ emoji-regex@8.0.0
β”œβ”€ end-of-stream@1.4.4
β”œβ”€ envinfo@7.8.1
β”œβ”€ error-ex@1.3.2
β”œβ”€ error-stack-parser@2.0.7
β”œβ”€ errorhandler@1.5.1
β”œβ”€ escalade@3.1.1
β”œβ”€ escape-string-regexp@1.0.5
β”œβ”€ esprima@4.0.1
β”œβ”€ etag@1.8.1
β”œβ”€ event-target-shim@5.0.1
β”œβ”€ expand-brackets@2.1.4
β”œβ”€ extglob@2.0.4
β”œβ”€ fb-watchman@2.0.1
β”œβ”€ fill-range@4.0.0
β”œβ”€ finalhandler@1.1.2
β”œβ”€ find-cache-dir@2.1.0
β”œβ”€ flow-parser@0.121.0
β”œβ”€ for-in@1.0.2
β”œβ”€ fresh@0.5.2
β”œβ”€ fs.realpath@1.0.0
β”œβ”€ fsevents@2.3.2
β”œβ”€ gensync@1.0.0-beta.2
β”œβ”€ get-caller-file@2.0.5
β”œβ”€ get-intrinsic@1.1.1
β”œβ”€ get-stream@4.1.0
β”œβ”€ has-property-descriptors@1.0.0
β”œβ”€ has-value@1.0.0
β”œβ”€ hermes-engine@0.11.0
β”œβ”€ hermes-estree@0.5.0
β”œβ”€ hermes-profile-transformer@0.0.6
β”œβ”€ http-errors@2.0.0
β”œβ”€ ieee754@1.2.1
β”œβ”€ image-size@0.6.3
β”œβ”€ import-fresh@2.0.0
β”œβ”€ imurmurhash@0.1.4
β”œβ”€ inflight@1.0.6
β”œβ”€ inherits@2.0.4
β”œβ”€ ip@1.1.5
β”œβ”€ is-accessor-descriptor@1.0.0
β”œβ”€ is-arrayish@0.2.1
β”œβ”€ is-core-module@2.9.0
β”œβ”€ is-data-descriptor@1.0.0
β”œβ”€ is-descriptor@1.0.2
β”œβ”€ is-directory@0.3.1
β”œβ”€ is-fullwidth-code-point@2.0.0
β”œβ”€ is-interactive@1.0.0
β”œβ”€ is-plain-object@2.0.4
β”œβ”€ is-stream@1.1.0
β”œβ”€ is-windows@1.0.2
β”œβ”€ is-wsl@1.1.0
β”œβ”€ isarray@1.0.0
β”œβ”€ isexe@2.0.0
β”œβ”€ jest-get-type@26.3.0
β”œβ”€ jest-regex-util@27.5.1
β”œβ”€ jest-serializer@27.5.1
β”œβ”€ jest-util@27.5.1
β”œβ”€ jest-validate@26.6.2
β”œβ”€ jest-worker@26.6.2
β”œβ”€ joi@17.6.0
β”œβ”€ js-tokens@4.0.0
β”œβ”€ jsc-android@250230.2.1
β”œβ”€ jscodeshift@0.13.1
β”œβ”€ jsesc@2.5.2
β”œβ”€ json-parse-better-errors@1.0.2
β”œβ”€ json5@2.2.1
β”œβ”€ jsonfile@4.0.0
β”œβ”€ jsonify@0.0.0
β”œβ”€ klaw@1.3.1
β”œβ”€ kleur@3.0.3
β”œβ”€ locate-path@5.0.0
β”œβ”€ lodash.debounce@4.0.8
β”œβ”€ lodash@4.17.21
β”œβ”€ log-symbols@2.2.0
β”œβ”€ loose-envify@1.4.0
β”œβ”€ make-dir@2.1.0
β”œβ”€ makeerror@1.0.12
β”œβ”€ map-visit@1.0.0
β”œβ”€ metro-config@0.67.0
β”œβ”€ metro-inspector-proxy@0.67.0
β”œβ”€ metro-minify-uglify@0.67.0
β”œβ”€ metro-react-native-babel-transformer@0.67.0
β”œβ”€ metro-transform-worker@0.67.0
β”œβ”€ micromatch@3.1.10
β”œβ”€ mime-db@1.52.0
β”œβ”€ mime-types@2.1.35
β”œβ”€ mimic-fn@1.2.0
β”œβ”€ minimatch@3.1.2
β”œβ”€ minimist@1.2.6
β”œβ”€ mixin-deep@1.3.2
β”œβ”€ ms@2.0.0
β”œβ”€ nanomatch@1.2.13
β”œβ”€ negotiator@0.6.3
β”œβ”€ neo-async@2.6.2
β”œβ”€ nice-try@1.0.5
β”œβ”€ nocache@2.1.0
β”œβ”€ node-dir@0.1.17
β”œβ”€ node-fetch@2.6.7
β”œβ”€ node-int64@0.4.0
β”œβ”€ node-releases@2.0.4
β”œβ”€ node-stream-zip@1.15.0
β”œβ”€ normalize-path@3.0.0
β”œβ”€ npm-run-path@2.0.2
β”œβ”€ ob1@0.67.0
β”œβ”€ object-copy@0.1.0
β”œβ”€ object.assign@4.1.2
β”œβ”€ on-finished@2.4.1
β”œβ”€ on-headers@1.0.2
β”œβ”€ once@1.4.0
β”œβ”€ onetime@2.0.1
β”œβ”€ os-tmpdir@1.0.2
β”œβ”€ p-finally@1.0.0
β”œβ”€ p-limit@2.3.0
β”œβ”€ p-locate@4.1.0
β”œβ”€ p-try@2.2.0
β”œβ”€ parse-json@4.0.0
β”œβ”€ pascalcase@0.1.1
β”œβ”€ path-exists@4.0.0
β”œβ”€ path-is-absolute@1.0.1
β”œβ”€ path-key@2.0.1
β”œβ”€ path-parse@1.0.7
β”œβ”€ picocolors@1.0.0
β”œβ”€ picomatch@2.3.1
β”œβ”€ pify@4.0.1
β”œβ”€ pirates@4.0.5
β”œβ”€ pkg-dir@3.0.0
β”œβ”€ plist@3.0.5
β”œβ”€ posix-character-classes@0.1.1
β”œβ”€ process-nextick-args@2.0.1
β”œβ”€ promise@8.1.0
β”œβ”€ prompts@2.4.2
β”œβ”€ prop-types@15.8.1
β”œβ”€ pump@3.0.0
β”œβ”€ range-parser@1.2.1
β”œβ”€ react-devtools-core@4.24.4
β”œβ”€ react-is@17.0.2
β”œβ”€ react-native-codegen@0.0.13
β”œβ”€ react-native-gradle-plugin@0.0.6
β”œβ”€ react-native@0.68.1
β”œβ”€ react-shallow-renderer@16.14.1
β”œβ”€ readable-stream@3.6.0
β”œβ”€ readline@1.3.0
β”œβ”€ recast@0.20.5
β”œβ”€ regenerate-unicode-properties@10.0.1
β”œβ”€ regenerator-runtime@0.13.9
β”œβ”€ regenerator-transform@0.15.0
β”œβ”€ regexpu-core@5.0.1
β”œβ”€ regjsgen@0.6.0
β”œβ”€ regjsparser@0.8.4
β”œβ”€ repeat-element@1.1.4
β”œβ”€ require-directory@2.1.1
β”œβ”€ require-main-filename@2.0.0
β”œβ”€ resolve-from@3.0.0
β”œβ”€ resolve-url@0.2.1
β”œβ”€ resolve@1.22.0
β”œβ”€ restore-cursor@2.0.0
β”œβ”€ ret@0.1.15
β”œβ”€ safe-buffer@5.1.2
β”œβ”€ sax@1.2.4
β”œβ”€ scheduler@0.20.2
β”œβ”€ semver@6.3.0
β”œβ”€ send@0.18.0
β”œβ”€ serialize-error@2.1.0
β”œβ”€ set-blocking@2.0.0
β”œβ”€ set-value@2.0.1
β”œβ”€ setprototypeof@1.2.0
β”œβ”€ shallow-clone@3.0.1
β”œβ”€ shebang-command@1.2.0
β”œβ”€ shebang-regex@1.0.0
β”œβ”€ shell-quote@1.7.3
β”œβ”€ simple-plist@1.3.1
β”œβ”€ sisteransi@1.0.5
β”œβ”€ slice-ansi@2.1.0
β”œβ”€ snapdragon-node@2.1.1
β”œβ”€ snapdragon-util@3.0.1
β”œβ”€ source-map-resolve@0.5.3
β”œβ”€ source-map-support@0.5.21
β”œβ”€ source-map-url@0.4.1
β”œβ”€ split-string@3.1.0
β”œβ”€ sprintf-js@1.0.3
β”œβ”€ stackframe@1.2.1
β”œβ”€ stacktrace-parser@0.1.10
β”œβ”€ static-extend@0.1.2
β”œβ”€ stream-buffers@2.2.0
β”œβ”€ string_decoder@1.3.0
β”œβ”€ string-width@4.2.3
β”œβ”€ strip-eof@1.0.0
β”œβ”€ sudo-prompt@9.2.1
β”œβ”€ supports-color@7.2.0
β”œβ”€ supports-preserve-symlinks-flag@1.0.0
β”œβ”€ temp@0.8.4
β”œβ”€ throat@5.0.0
β”œβ”€ through2@2.0.5
β”œβ”€ tmpl@1.0.5
β”œβ”€ to-fast-properties@2.0.0
β”œβ”€ to-object-path@0.3.0
β”œβ”€ to-regex-range@2.1.1
β”œβ”€ toidentifier@1.0.1
β”œβ”€ tr46@0.0.3
β”œβ”€ type-fest@0.7.1
β”œβ”€ uglify-es@3.3.9
β”œβ”€ unicode-canonical-property-names-ecmascript@2.0.0
β”œβ”€ unicode-match-property-ecmascript@2.0.0
β”œβ”€ unicode-match-property-value-ecmascript@2.0.0
β”œβ”€ unicode-property-aliases-ecmascript@2.0.0
β”œβ”€ union-value@1.0.1
β”œβ”€ universalify@0.1.2
β”œβ”€ unpipe@1.0.0
β”œβ”€ unset-value@1.0.0
β”œβ”€ urix@0.1.0
β”œβ”€ use-subscription@1.5.1
β”œβ”€ use@3.1.1
β”œβ”€ util-deprecate@1.0.2
β”œβ”€ utils-merge@1.0.1
β”œβ”€ uuid@7.0.3
β”œβ”€ vary@1.1.2
β”œβ”€ walker@1.0.8
β”œβ”€ webidl-conversions@3.0.1
β”œβ”€ whatwg-fetch@3.6.2
β”œβ”€ whatwg-url@5.0.0
β”œβ”€ which-module@2.0.0
β”œβ”€ which@1.3.1
β”œβ”€ wrap-ansi@6.2.0
β”œβ”€ write-file-atomic@2.4.3
β”œβ”€ xcode@3.0.1
β”œβ”€ xmlbuilder@9.0.7
β”œβ”€ xtend@4.0.2
β”œβ”€ y18n@4.0.3
└─ yargs-parser@18.1.3
✨  Done in 21.12s.
debug Getting config from /var/folders/gc/2wsry8y94mq9bq44x3s66r580000gn/T/rncli-init-template-KoH3yw/node_modules/react-native/template.config.js
debug Copying template from /var/folders/gc/2wsry8y94mq9bq44x3s66r580000gn/T/rncli-init-template-KoH3yw/node_modules/react-native/template
debug Changing HelloWorld for ProjectName in template
debug Replacing in /Users/WangCe/ProjectName/package.json
debug Replacing in /Users/WangCe/ProjectName/package.json
debug Replacing in /Users/WangCe/ProjectName/metro.config.js
debug Replacing in /Users/WangCe/ProjectName/metro.config.js
debug Replacing in /Users/WangCe/ProjectName/ios/Podfile
debug Replacing in /Users/WangCe/ProjectName/ios/Podfile
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorldTests/Info.plist
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorldTests/Info.plist
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorldTests/HelloWorldTests.m
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorldTests/HelloWorldTests.m
debug Renaming /Users/WangCe/ProjectName/ios/HelloWorldTests/HelloWorldTests.m -> file:/Users/WangCe/ProjectName/ios/HelloWorldTests/ProjectNameTests.m
debug Renaming /Users/WangCe/ProjectName/ios/HelloWorldTests -> file:/Users/WangCe/ProjectName/ios/ProjectNameTests
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld.xcodeproj/xcshareddata/xcschemes/HelloWorld.xcscheme
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld.xcodeproj/xcshareddata/xcschemes/HelloWorld.xcscheme
debug Renaming /Users/WangCe/ProjectName/ios/HelloWorld.xcodeproj/xcshareddata/xcschemes/HelloWorld.xcscheme -> file:/Users/WangCe/ProjectName/ios/HelloWorld.xcodeproj/xcshareddata/xcschemes/ProjectName.xcscheme
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld.xcodeproj/project.pbxproj
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld.xcodeproj/project.pbxproj
debug Renaming /Users/WangCe/ProjectName/ios/HelloWorld.xcodeproj -> file:/Users/WangCe/ProjectName/ios/ProjectName.xcodeproj
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/main.m
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/main.m
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/LaunchScreen.storyboard
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/LaunchScreen.storyboard
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/Info.plist
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/Info.plist
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/Images.xcassets/Contents.json
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/Images.xcassets/Contents.json
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/Images.xcassets/AppIcon.appiconset/Contents.json
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/Images.xcassets/AppIcon.appiconset/Contents.json
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/AppDelegate.mm
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/AppDelegate.mm
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/AppDelegate.h
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/AppDelegate.h
debug Renaming /Users/WangCe/ProjectName/ios/HelloWorld -> file:/Users/WangCe/ProjectName/ios/ProjectName
debug Replacing in /Users/WangCe/ProjectName/index.js
debug Replacing in /Users/WangCe/ProjectName/index.js
debug Replacing in /Users/WangCe/ProjectName/babel.config.js
debug Replacing in /Users/WangCe/ProjectName/babel.config.js
debug Replacing in /Users/WangCe/ProjectName/app.json
debug Replacing in /Users/WangCe/ProjectName/app.json
debug Replacing in /Users/WangCe/ProjectName/android/settings.gradle
debug Replacing in /Users/WangCe/ProjectName/android/settings.gradle
debug Replacing in /Users/WangCe/ProjectName/android/gradlew.bat
debug Replacing in /Users/WangCe/ProjectName/android/gradlew.bat
debug Replacing in /Users/WangCe/ProjectName/android/gradlew
debug Replacing in /Users/WangCe/ProjectName/android/gradlew
debug Replacing in /Users/WangCe/ProjectName/android/gradle.properties
debug Replacing in /Users/WangCe/ProjectName/android/gradle.properties
debug Replacing in /Users/WangCe/ProjectName/android/gradle/wrapper/gradle-wrapper.properties
debug Replacing in /Users/WangCe/ProjectName/android/gradle/wrapper/gradle-wrapper.properties
debug Replacing in /Users/WangCe/ProjectName/android/gradle/wrapper/gradle-wrapper.jar
debug Replacing in /Users/WangCe/ProjectName/android/gradle/wrapper/gradle-wrapper.jar
debug Replacing in /Users/WangCe/ProjectName/android/build.gradle
debug Replacing in /Users/WangCe/ProjectName/android/build.gradle
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/values/styles.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/values/styles.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/values/strings.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/values/strings.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/drawable/rn_edit_text_material.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/drawable/rn_edit_text_material.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/OnLoad.cpp
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/OnLoad.cpp
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainComponentsRegistry.h
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainComponentsRegistry.h
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainComponentsRegistry.cpp
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainComponentsRegistry.cpp
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainApplicationModuleProvider.h
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainApplicationModuleProvider.h
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainApplicationModuleProvider.cpp
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainApplicationModuleProvider.cpp
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/Android.mk
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/Android.mk
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/newarchitecture/components/MainComponentsRegistry.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/newarchitecture/components/MainComponentsRegistry.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/newarchitecture/MainApplicationReactNativeHost.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/newarchitecture/MainApplicationReactNativeHost.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/MainApplication.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/MainApplication.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/MainActivity.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/MainActivity.java
debug Renaming /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld -> file:/Users/WangCe/ProjectName/android/app/src/main/java/com/projectname
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/AndroidManifest.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/AndroidManifest.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/src/debug/java/com/helloworld/ReactNativeFlipper.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/debug/java/com/helloworld/ReactNativeFlipper.java
debug Renaming /Users/WangCe/ProjectName/android/app/src/debug/java/com/helloworld -> file:/Users/WangCe/ProjectName/android/app/src/debug/java/com/projectname
debug Replacing in /Users/WangCe/ProjectName/android/app/src/debug/AndroidManifest.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/src/debug/AndroidManifest.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/proguard-rules.pro
debug Replacing in /Users/WangCe/ProjectName/android/app/proguard-rules.pro
debug Replacing in /Users/WangCe/ProjectName/android/app/debug.keystore
debug Replacing in /Users/WangCe/ProjectName/android/app/debug.keystore
debug Replacing in /Users/WangCe/ProjectName/android/app/build_defs.bzl
debug Replacing in /Users/WangCe/ProjectName/android/app/build_defs.bzl
debug Replacing in /Users/WangCe/ProjectName/android/app/build.gradle
debug Replacing in /Users/WangCe/ProjectName/android/app/build.gradle
debug Replacing in /Users/WangCe/ProjectName/android/app/_BUCK
debug Replacing in /Users/WangCe/ProjectName/android/app/_BUCK
debug Replacing in /Users/WangCe/ProjectName/_watchmanconfig
debug Replacing in /Users/WangCe/ProjectName/_watchmanconfig
debug Renaming /Users/WangCe/ProjectName/_watchmanconfig -> file:/Users/WangCe/ProjectName/.watchmanconfig
debug Replacing in /Users/WangCe/ProjectName/_ruby-version
debug Replacing in /Users/WangCe/ProjectName/_ruby-version
debug Renaming /Users/WangCe/ProjectName/_ruby-version -> file:/Users/WangCe/ProjectName/.ruby-version
debug Replacing in /Users/WangCe/ProjectName/_prettierrc.js
debug Replacing in /Users/WangCe/ProjectName/_prettierrc.js
debug Renaming /Users/WangCe/ProjectName/_prettierrc.js -> file:/Users/WangCe/ProjectName/.prettierrc.js
debug Replacing in /Users/WangCe/ProjectName/_gitignore
debug Replacing in /Users/WangCe/ProjectName/_gitignore
debug Renaming /Users/WangCe/ProjectName/_gitignore -> file:/Users/WangCe/ProjectName/.gitignore
debug Replacing in /Users/WangCe/ProjectName/_flowconfig
debug Replacing in /Users/WangCe/ProjectName/_flowconfig
debug Renaming /Users/WangCe/ProjectName/_flowconfig -> file:/Users/WangCe/ProjectName/.flowconfig
debug Replacing in /Users/WangCe/ProjectName/_eslintrc.js
debug Replacing in /Users/WangCe/ProjectName/_eslintrc.js
debug Renaming /Users/WangCe/ProjectName/_eslintrc.js -> file:/Users/WangCe/ProjectName/.eslintrc.js
debug Replacing in /Users/WangCe/ProjectName/_bundle/config
debug Replacing in /Users/WangCe/ProjectName/_bundle/config
debug Renaming /Users/WangCe/ProjectName/_bundle/config -> file:/Users/WangCe/ProjectName/_bundle/config
debug Renaming /Users/WangCe/ProjectName/_bundle -> file:/Users/WangCe/ProjectName/.bundle
debug Replacing in /Users/WangCe/ProjectName/_buckconfig
debug Replacing in /Users/WangCe/ProjectName/_buckconfig
debug Renaming /Users/WangCe/ProjectName/_buckconfig -> file:/Users/WangCe/ProjectName/.buckconfig
debug Replacing in /Users/WangCe/ProjectName/__tests__/App-test.js
debug Replacing in /Users/WangCe/ProjectName/__tests__/App-test.js
debug Replacing in /Users/WangCe/ProjectName/Gemfile.lock
debug Replacing in /Users/WangCe/ProjectName/Gemfile.lock
debug Replacing in /Users/WangCe/ProjectName/Gemfile
debug Replacing in /Users/WangCe/ProjectName/Gemfile
debug Replacing in /Users/WangCe/ProjectName/App.js
debug Replacing in /Users/WangCe/ProjectName/App.js
yarn install v1.22.15
info No lockfile found.
[1/4] πŸ”  Resolving packages...
warning react-native > @react-native-community/cli > @react-native-community/cli-plugin-metro > metro > metro-minify-uglify > uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning @react-native-community/eslint-config > babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
warning babel-jest > @jest/transform > jest-haste-map > sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
warning "react-native > react-native-codegen > jscodeshift@0.13.1" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "@react-native-community/eslint-config > @typescript-eslint/eslint-plugin > tsutils@3.21.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] πŸ”¨  Building fresh packages...
success Saved lockfile.
✨  Done in 38.99s.
? CocoaPods (https://cocoapods.org/) is not installed. CocoaPods is necessary for the iOS project to run correctly. Do you want to install it? β€Ί - Use arrow-keys. Return to submit.
❯   Yes, with gem (may require sudo)
    Yes, with Homebrew

Description

Just keep telling me that cocoapods is not installed:

CocoaPods (https://cocoapods.org/) is not installed. CocoaPods is necessary for the iOS project to run correctly. Do you want to install it? β€Ί - Use arrow-keys. Return to submit.
❯   Yes, with gem (may require sudo)
    Yes, with Homebrew

Reproducible Demo

macOS, macOS only.

npx react-native init ProjectName --verbose

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:7

github_iconTop GitHub Comments

1reaction
heyalexchoicommented, Jul 13, 2022

having same issue. possibly related to https://github.com/react-native-community/cli/issues/1649

0reactions
HaloWangcommented, Nov 26, 2022

thank you for your reply. i will take a look at this problem when i back to RN dev

On Fri, Nov 25, 2022, 5:50 PM Adam TrzciΕ„ski @.***> wrote:

Hi. As for now, recommended way to install Cocoapods is with bundler. There have been also some improvements merged into CLI that should address the issues you were facing. I’ll close the issue for now, please check if this is still valid and if so I’m happy to reopen πŸ˜ƒ

β€” Reply to this email directly, view it on GitHub https://github.com/react-native-community/cli/issues/1602#issuecomment-1327241288, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYBEVFFIOWMQYPMFOAOR4TWKCDVZANCNFSM5VAXRR7A . You are receiving this because you authored the thread.Message ID: @.***>

Read more comments on GitHub >

github_iconTop Results From Across the Web

CocoaPods not installed or not in valid state - Stack Overflow
You appear to have CocoaPods installed but it is not working. This can happen if the version of Ruby that CocoaPods was installed...
Read more >
issue with cocoapods installation | Apple Developer Forums
this works for me: Step 1 (install HomeBrew). /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh).
Read more >
Troubleshooting - CocoaPods Guides
After upgrading from macOS 10.8 to 10.9 the installed CocoaPods gem doesn't work anymore, even after re-installing the gem. To solve this, you...
Read more >
cocoapods not installed or not in valid state. error launching ...
Warning: CocoaPods not installed. Skipping pod install. CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to...
Read more >
CocoaPods installation failure when building for iOS
"pod install" was then attempted again, and still failed. This may be due to a broken CocoaPods installation. See: https://guides.cocoapods.org/Β ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found