Closed esutton closed 8 years ago
Hi @esutton, I'm seeing you are running Node 5.9.1 through NVM. Unfortunately this tool right now requires at least Node.js 6.0. Is using Node.js 6.0+ an option for you?
@frostney Thank you for the quick reply.
Do you know if Node.js 6.0 should be a painless upgrade for react native ?
I will read about how to upgrade Node.js
You should be able to use Node 6.x side-by-side to Node 5 with NVM.
nvm install 6
You can instruct NVM to only use Node 6 to create a library with this tool by doing
nvm exec 6 react-native-create-library MyBridgeModule
If that doesn't work, try:
nvm use 6 // Switch to Node 6 first
react-native-create-library MyBridgeModule // Create library
nvm use 5 // Switch back to Node 5
I realize that both of that is not a perfect solution. Let me know if it works for you.
I haven't run into any issues with Node 6 and React Native, but to be honest I try to always be on the latest React Native version.
That sounds great. I will give it a try.
Thank you for the details on installing and switching.
Thank you for tips on nvm and Node.
Works great.
Thank you for sharing your work.
Wow! This will be a great time saver! Thank you for sharing a great tool!
I am getting this error when I create a new project: