Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de13b59

Browse files
committed
[Docs] Explain more about nvm in the io.js setup docs
Clarify that io.js is the modern version of Node and explain a little more about how to get set up with nvm, and that it lets you switch between multiple io.js/node versions.
1 parent 5164aa2 commit de13b59

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

docs/EmbeddedApp.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ Since React makes no assumptions about the rest of your technology stack – it
1212
## Requirements
1313

1414
- [CocoaPods](http://cocoapods.org/)`gem install cocoapods`
15-
- [io.js](http://iojs.org)`brew install iojs && brew link iojs --force` or from [nvm](https://github.com/creationix/nvm)
16-
- You may have to run `brew unlink node` if you have previously installed Node
15+
- [io.js](http://iojs.org)
16+
- **With nvm:** Install nvm with [its setup instructions here](https://github.com/creationix/nvm#installation). Then run `nvm install iojs && nvm alias default iojs`, which installs the latest version of io.js and sets up your terminal so that typing `node` runs io.js. With nvm you can install multiple versions of Node and io.js and easily switch between them.
17+
- **With Homebrew:** Run `brew install iojs && brew link iojs --force`. You may need to run `brew unlink node` if you have previously installed Node.
1718

1819
## Install React Native Using CocoaPods
1920

docs/GettingStarted.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ next: tutorial
1111

1212
1. OS X - This repo only contains the iOS (7+) implementation right now, and Xcode only runs on Mac.
1313
2. [Xcode](https://developer.apple.com/xcode/downloads/) 6.3 or higher is recommended.
14-
3. [Homebrew](http://brew.sh/) is the recommended way to install node, watchman, and flow.
15-
4. `brew install iojs && brew link iojs --force`. You may need to run `brew unlink node` if you have previously installed Node. New to [io.js](https://iojs.org/) or [npm](https://docs.npmjs.com/)?
14+
3. [Homebrew](http://brew.sh/) is the recommended way to install io.js, watchman, and flow.
15+
4. Install [io.js](https://iojs.org/) 1.0 or newer. io.js is the modern version of Node.
16+
- **With nvm:** Install nvm with [its setup instructions here](https://github.com/creationix/nvm#installation). Then run `nvm install iojs && nvm alias default iojs`, which installs the latest version of io.js and sets up your terminal so that typing `node` runs io.js. With nvm you can install multiple versions of Node and io.js and easily switch between them.
17+
- **With Homebrew:** Run `brew install iojs && brew link iojs --force`. You may need to run `brew unlink node` if you have previously installed Node.
18+
- New to [npm](https://docs.npmjs.com/)?
1619
5. `brew install watchman`. We recommend installing [watchman](https://facebook.github.io/watchman/docs/install.html), otherwise you might hit a node file watching bug.
1720
6. `brew install flow`. If you want to use [flow](http://www.flowtype.org).
1821

22+
We recommend periodically running `brew update && brew upgrade` to keep your programs up-to-date.
23+
1924
## Quick start
2025

2126
- `npm install -g react-native-cli`

0 commit comments

Comments
 (0)