auth0 / react-native-lock

[DEPRECATED] A wrapper of Lock to use with React Native (iOS & Android)
MIT License
277 stars 77 forks source link

Linking Error #160

Closed raphaeltm closed 7 years ago

raphaeltm commented 7 years ago

As per the instructions, I run npm install --save react-native-lock. I then try react-native link react-native-lock but get this error:

rnpm-install ERR! Something went wrong while linking. Error: spawn UNKNOWN 

I went digging through GitHub to see if anybody else had a similar error, and I found this which suggests it might be on the Auth0 side? Apparently it was previously an error that was fixed... but no word on where/how it was fixed.

React Native Lock 0.6.0 Android Version 6.0 React Native 0.44.2 NPM 5.0.0 Windows 10

raphaeltm commented 7 years ago

Aha. I didn't see it in my first searches, but I guess the answer is here and I guess Auth0 isn't prioritizing making this work for Windows.

raphaeltm commented 7 years ago

I've already committed to Auth0 for a project... so I went out and bought a Mac... sigh 😅

hzalaz commented 7 years ago

@raphaeltm tbh we haven't had time to take a look at it and can't think of a safe way to detect in the preinstall scripts what OS I am at besides wrapping them in JS files and checking the OS there. If you are willing to send a PR I might check it out.

Also if you are planning on building an iOS app you would need a Mac even if you don't use Auth0.

raphaeltm commented 7 years ago

@hzalaz makes sense.

I was planning on focusing on Android, and then adding iOS support later on with a Mac Mini that's not super convenient for me to make use of. But I seem to regularly run into things where tools and libraries are focused on iOS, and OSX-based development... So I decided it might be time to just get it over with and go out and grab a Apple laptop for any of those situations.

I'll see if there's something I can do, but in the meantime, I'll probably just stick to the newfound convenience of relying on all the Apple-focused stuff out there 😛

Thanks for the quick response, though! 😄