react-native-oauth icon indicating copy to clipboard operation
react-native-oauth copied to clipboard

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

Open talk2MeGooseman opened this issue 6 years ago • 2 comments

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?

talk2MeGooseman avatar Sep 30 '17 17:09 talk2MeGooseman

I have a problem like you can fix it?

AlohaIndy avatar May 04 '18 07:05 AlohaIndy

@talk2MeGooseman same

chenshuiluke avatar May 09 '18 02:05 chenshuiluke