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.

react-native link react-native-oauth fails on Windows

See original GitHub issue

It seems the addition of the prelink and postlink rnpm commands to the json.package prevent Windows users from using this tool. The shell scripts you have written are not windows env compatible and cause rnpm-install to crash. I’ll see if I can write a fix for this.

rnpm-install ERR! It seems something went wrong while linking. Error: spawn UNKNOWN
Please file an issue here: https://github.com/facebook/react-native/issues

spawn UNKNOWN

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
Cleanshootercommented, Jan 18, 2017

Removing the following from package.json allows linking to complete succesfuly.

  "rnpm": {
    "commands": {
      "prelink": "node_modules/react-native-oauth/bin/prepare.sh",
      "postlink": "node_modules/react-native-oauth/bin/cocoapods.sh"
    },
    "ios": {
      "project": "ios/OAuthManager.xcodeproj"
    },
    "android": {
      "packageInstance": "new OAuthManagerPackage()"
    }
  },

https://github.com/Cleanshooter/react-native-oauth

Not really a solution but a work around for now… I guess. I’m not experienced enough with npm packages to figure out how to run shells from Windows CMD so this library would be more cross compatible.

0reactions
jinz11commented, Jan 6, 2019

manually removed this section will cause app failed to generate apk due to verify release resource step failed. I think should update this changes on repo instead of remove it manually.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native, unable to get access token - Stack Overflow
React Native, unable to get access token ... I'm using react-native-app-auth to get access token from azure ad b2c but I'm facing issues...
Read more >
Addressing common errors in React Native - LogRocket Blog
Explore common React Native errors such as "command not found" and learn about their causes and potential solutions.
Read more >
Troubleshooting - React Native
These are some common issues you may run into while setting up React Native. If you encounter something that is not listed here,...
Read more >
Stuck on the window saying "Are you trying to sign in to ...
Do you get any error in the console when you click "Continue"? Make sure that you've registered the application properly and included all...
Read more >
react-native-video - npm
Linking is not required in React Native 0.60 and above. If your project is using React Native < 0.60, run react-native link react-native-video ......
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