fullstackreact / react-native-oauth

A react-native wrapper for social authentication login for both Android and iOS
https://fullstackreact.com
MIT License
802 stars 216 forks source link

react-native link react-native-oauth doesnt work on Windows powershell #166

Open talk2MeGooseman opened 6 years ago

talk2MeGooseman commented 6 years ago
rnpm-install ERR! Something went wrong while linking. Error: spawn UNKNOWN 
Please file an issue here: https://github.com/facebook/react-native/issues

spawn UNKNOWN

I get the following error when attempting to link the library. Solution was to remove the pre and post link shell scripts that were erroring out.

  "rnpm": {
    "commands": {
      "prelink": "node_modules/react-native-oauth/bin/prepare.sh",
      "postlink": "node_modules/react-native-oauth/bin/cocoapods.sh"
    },
...

It appears the shell script expected to be running bash but in this case I am running in powershell. Can there be a better linking workflow to account for this?

AlohaIndy commented 6 years ago

I have a problem like you can fix it?

chenshuiluke commented 6 years ago

@talk2MeGooseman same