gurisko / cordova-plugin-accountkit

AccountKit Plugin for Apache Cordova which allows you to add passwordless email and SMS authentication to your app
MIT License
34 stars 42 forks source link

Failed to install 'cordova-plugin-accountkit': undefined #53

Closed 2xSamurai closed 6 years ago

2xSamurai commented 6 years ago

I am getting the following error while trying to install the plugin. I searched on google and stack overflow but couldn't find a solution. Any advice would be really appreciated. Thank you.

Installing "cordova-plugin-accountkit" for android
Subproject Path: CordovaLib
Installing "cordova-plugin-accountkit" for ios
Failed to install 'cordova-plugin-accountkit': undefined
Error: /bin/sh: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory
Ionic Info

Ionic:

   ionic (Ionic CLI) : 4.3.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework   : ionic1 1.3.5
   @ionic/v1-toolkit : 1.0.8

Cordova:

   cordova (Cordova CLI) : 7.1.0
   Cordova Platforms     : android 6.3.0, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-webview 1.2.1, (and 20 other plugins)

System:

   ios-deploy : 1.9.2
   ios-sim    : 5.0.13
   NodeJS     : v6.9.4 (/usr/local/bin/node)
   npm        : 3.10.10
   OS         : macOS
   Xcode      : Xcode 10.0 Build version 10A255
2xSamurai commented 6 years ago

If anybody comes across such an issue please do the following. It worked for me. Hope it helps someone

Make sure that you use sudo.

sudo gem install cocoapods
pod repo update

Thank you.