$ react-native info
info Fetching system and libraries information...
(node:17046) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
System:
OS: macOS 10.15.5
CPU: (4) x64 Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz
Memory: 125.88 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 14.3.0 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.4 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
IDEs:
Xcode: 11.5/11E608c - /usr/bin/xcodebuild
npmPackages:
react: ~16.9.0 => 16.9.0
react-native: ~0.61.5 => 0.61.5
npmGlobalPackages:
react-native-cli: 0.1.4
Just after doing an expo eject, when trying to do a pod install from within the ios directory, I get the following output and error.
As you can see in the output of react-native info, I do have node installed and in my PATH. Any idea what could be wrong?
./ios $ pod install
Installing unimodules:
[email protected] from ../node_modules/expo-constants/ios
[email protected] from ../node_modules/expo-error-recovery/ios
[email protected] from ../node_modules/expo-file-system/ios
[email protected] from ../node_modules/expo-font/ios
[email protected] from ../node_modules/expo-image-loader/ios
[email protected] from ../node_modules/expo-keep-awake/ios
[email protected] from ../node_modules/expo-linear-gradient/ios
[email protected] from ../node_modules/expo-location/ios
[email protected] from ../node_modules/expo-permissions/ios
[email protected] from ../node_modules/expo-splash-screen/ios
[email protected] from ../node_modules/expo-sqlite/ios
[email protected] from ../node_modules/expo-updates/ios
[email protected] from ../node_modules/expo-web-browser/ios
[email protected] from ../node_modules/react-native-unimodules/node_modules/unimodules-app-loader/ios
[email protected] from ../node_modules/unimodules-barcode-scanner-interface/ios
[email protected] from ../node_modules/unimodules-camera-interface/ios
[email protected] from ../node_modules/unimodules-constants-interface/ios
[email protected] from ../node_modules/react-native-unimodules/node_modules/@unimodules/core/ios
[email protected] from ../node_modules/unimodules-face-detector-interface/ios
[email protected] from ../node_modules/unimodules-file-system-interface/ios
[email protected] from ../node_modules/unimodules-font-interface/ios
[email protected] from ../node_modules/unimodules-image-loader-interface/ios
[email protected] from ../node_modules/unimodules-permissions-interface/ios
[email protected] from ../node_modules/@unimodules/react-native-adapter/ios
[email protected] from ../node_modules/unimodules-sensors-interface/ios
[email protected] from ../node_modules/unimodules-task-manager-interface/ios
Found some duplicated unimodule packages. Installed the ones with the highest version number.
Make sure following dependencies of your project are resolving to one specific version:
unimodules-app-loader, unimodules-core
[!] Invalid `Podfile` file: [!] Unable to locate the executable `node`.
# from /Users/sam/Development/HabitApp/ios/Podfile:45
# -------------------------------------------
# # react-native-cli autolinking
> use_native_modules!
# end
# -------------------------------------------
Updating cocoapods solved the issue.
I updated cocoa pods but it didn't solve the problem :(
Please reopen.
Updating cocoapods solved the issue.
Do you mean the pods executable? Or the pods listed in the pod file. What command and what pods and what's your package.json?
@OKNoah That was a while ago, so I don't remember all the details. What I did is update the cocoapods executable (via the ruby gem). Though I think it's better for you to open your own issue if you're facing some problems. You can do this here: https://github.com/react-native-community/cli/issues/new/choose.
@OKNoah That was a while ago, so I don't remember all the details. What I did is update the cocoapods executable (via the ruby gem). Though I think it's better for you to open your own issue if you're facing some problems. You can do this here: https://github.com/react-native-community/cli/issues/new/choose.
That is what everyone tells me and I've written my own solution.
Most helpful comment
I updated cocoa pods but it didn't solve the problem :(