Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid `Podfile` file: Unable to locate the executable `node`

I'm trying to run my App on IMB Cloud. Server run is OK. NPM Installed and Started. When POD Install from cd /ios it shows error:

denisbondar@MBP-Denis ios % pod install

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

# from /Users/denisbondar/Documents/kickapp/starter-kit/mobile-app/ios/Podfile:48 # ------------------------------------------- #

use_native_modules! # end # -------------------------------------------

Any thoughts? Thanks!

like image 236
Denis Bondar Avatar asked Apr 28 '20 11:04

Denis Bondar


2 Answers

brew remove cocoapods && sudo gem install cocoapods
like image 193
Max Sky Avatar answered Sep 17 '22 11:09

Max Sky


I am aware that the commands I ran in order to fix my build have already been mentioned on this page, but I'll try to provide the order I ran them + some backstory.

For me the problem was that I've initally installed cocoapods using homebrew and I couldn't get it to update past version 1.5.2. Tried different approaches but pod --version still printed 1.5.2.

Then I've tried installing cocoapods using gems with:

sudo gem install cocoapods

Even if it displayed that the installation of cocoapods 1.10.1 was successful, the command line from terminal still pointed to the homebrew version of cocoapods, and pod --version still printed out 1.5.2. So I had to remove it, by calling:

brew remove cocoapods

After that the command line pointed to the gems version of cocoapods (1.10.1). And the build was successful.

BEWARE I AM MAC OS NOOBIE SO PROCEED WITH CAUSION FOR THE NEXT PART

Also, my friend tried to follow the exact same steps and his build still failed until he tried installing:

sudo arch -x86_64 gem install ffi

then after the installation he ran:

arch -x86_64 pod install

Again, I am a MAC OS noobie, so I don't understand very well yet what's the deal with this ffi. It just helped my friend getting his build done, so I thought it might also help somebody else.

like image 36
Ovidiu Deliu Avatar answered Sep 17 '22 11:09

Ovidiu Deliu