Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-native init doesn't respect nvm's node current version #8887

Closed
BrunoBernardino opened this issue Jul 19, 2016 · 2 comments
Closed

react-native init doesn't respect nvm's node current version #8887

BrunoBernardino opened this issue Jul 19, 2016 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@BrunoBernardino
Copy link

BrunoBernardino commented Jul 19, 2016

I just had this issue yesterday and I believe this deserves either a mention in the guide, something like:

If you're using nvm, we will use the default version to install dependencies, not the currently selected one

Or ideally a fix, to try and use the currently selected node version by nvm.

React Native 0.29.2
OS X 10.11.5
nvm 0.31.0

% nvm ls
->     v0.10.46
        v0.12.7
         v6.2.2
default -> 0.10 (-> v0.10.46)
stable -> 6 (-> v6.2.2)
node -> stable (-> v6.2.2) (default)
iojs -> N/A (default)

I had to make 6 default while running react-native init.

If someone acknowledges this, I can try to fix it.

@BrunoBernardino
Copy link
Author

BrunoBernardino commented Aug 11, 2016

I just want to add I have no system node version (only nvm versions) and I need to set 6 as the default even for running react-native run-ios which is really strange (nvm use 6 isn't enough).

@ericvicenti
Copy link
Contributor

Closing because there isn't much activity on this, so I don't think the issue is very widespread. If it is still broken, please file a ticket in product pains to support nvm better, and we can prioritize based on activity there.

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants