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.

[!] Invalid `Podfile` file: [!] Unable to locate the executable `node`.

See original GitHub issue

Environment

$ 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

Description

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:
 expo-constants@9.0.0 from ../node_modules/expo-constants/ios
 expo-error-recovery@1.1.0 from ../node_modules/expo-error-recovery/ios
 expo-file-system@8.1.0 from ../node_modules/expo-file-system/ios
 expo-font@8.1.1 from ../node_modules/expo-font/ios
 expo-image-loader@1.0.1 from ../node_modules/expo-image-loader/ios
 expo-keep-awake@8.1.0 from ../node_modules/expo-keep-awake/ios
 expo-linear-gradient@8.1.0 from ../node_modules/expo-linear-gradient/ios
 expo-location@8.1.0 from ../node_modules/expo-location/ios
 expo-permissions@8.1.0 from ../node_modules/expo-permissions/ios
 expo-splash-screen@0.2.3 from ../node_modules/expo-splash-screen/ios
 expo-sqlite@8.1.0 from ../node_modules/expo-sqlite/ios
 expo-updates@0.2.7 from ../node_modules/expo-updates/ios
 expo-web-browser@8.2.1 from ../node_modules/expo-web-browser/ios
 unimodules-app-loader@1.0.2 from ../node_modules/react-native-unimodules/node_modules/unimodules-app-loader/ios
 unimodules-barcode-scanner-interface@5.1.0 from ../node_modules/unimodules-barcode-scanner-interface/ios
 unimodules-camera-interface@5.1.0 from ../node_modules/unimodules-camera-interface/ios
 unimodules-constants-interface@5.1.0 from ../node_modules/unimodules-constants-interface/ios
 unimodules-core@5.1.2 from ../node_modules/react-native-unimodules/node_modules/@unimodules/core/ios
 unimodules-face-detector-interface@5.1.0 from ../node_modules/unimodules-face-detector-interface/ios
 unimodules-file-system-interface@5.1.0 from ../node_modules/unimodules-file-system-interface/ios
 unimodules-font-interface@5.1.0 from ../node_modules/unimodules-font-interface/ios
 unimodules-image-loader-interface@5.1.0 from ../node_modules/unimodules-image-loader-interface/ios
 unimodules-permissions-interface@5.1.0 from ../node_modules/unimodules-permissions-interface/ios
 unimodules-react-native-adapter@5.2.0 from ../node_modules/@unimodules/react-native-adapter/ios
 unimodules-sensors-interface@5.1.0 from ../node_modules/unimodules-sensors-interface/ios
 unimodules-task-manager-interface@5.1.0 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
 #  -------------------------------------------

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

9reactions
michimichimichicommented, Sep 9, 2020

I updated cocoa pods but it didn’t solve the problem 😦

0reactions
OKNoahcommented, Jan 18, 2021

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid `Podfile` file: Unable to locate the executable `node`
I had the same Issue. As I was trying to run a React Native App, and I needed some node module I have...
Read more >
Invalid `Podfile` file: [!] Unable to locate the executable `node`
Hey i am getting pod install error Error : [!] Invalid `Podfile` file: [!] Unable to locate the executable `node`.
Read more >
Invalid `Podfile` file: Unable to locate the executable `node`
Coding example for the question Invalid `Podfile` file: Unable to locate the executable `node`-React Native.
Read more >
[!] Invalid `Podfile` file: [!] Unable to locate the executable ` ...
Invalid `Podfile` file: [!] Unable to locate the executable `node`. ... exports inside circular dependency (Use `node --trace-warnings .
Read more >
Pod install error : r/iOSProgramming
Invalid `Podfile` file: [!] Unable to locate the executable `mkdir`. ... require File.join(File.dirname(`node --print ...
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