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

Enforces global dependencies are available. #920

Merged
merged 3 commits into from
Mar 21, 2017

Conversation

skellock
Copy link
Contributor

@skellock skellock commented Mar 21, 2017

We have 2 global dependencies.

react-native-cli is required and needs to be >=2.0.0. Older versions of this cause an ENOENT error when using nvm. So we now enforce this.

yarn is optional and if installed needs to be >=0.21.0.

Heads up @jamonholmgren, i removed the auto-installing of the react-native-cli in favour of a message. We don't want to install global dependencies because we don't know the environment. The only requirement is that it is installed, not that it is installed via npm i -g.

A good example of this is when people installed on linux and they sudo. Our command will fail, so it's better to just show them the command and let them run it.

I understand this is a step back from what you had, but this is safe.

Fixes #919

@skellock skellock added this to the 2.0 Beta 7 milestone Mar 21, 2017
@skellock skellock self-assigned this Mar 21, 2017
@skellock skellock added the bug label Mar 21, 2017
@skellock skellock merged commit 7713334 into master Mar 21, 2017
@skellock skellock deleted the upgrade-react-native-cli branch March 21, 2017 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant