From feb28257575bfaa2e6a4434fbe0f95eff16bb8c9 Mon Sep 17 00:00:00 2001 From: GevaZeichner Date: Sun, 24 Jul 2016 18:35:54 -0700 Subject: [PATCH] A fix for npmlog error Summary: Added a fix to the GettingStarted guide, for when npmlog module isn't found. Solution copied from: https://github.com/tj/n/issues/101#issuecomment-40827196 Closes https://github.com/facebook/react-native/pull/8994 Differential Revision: D3612345 Pulled By: JoelMarcey fbshipit-source-id: 10e7381adc530bb97c795cae022da3525745122a --- docs/GettingStarted.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/GettingStarted.md b/docs/GettingStarted.md index 2532eff21..da9a8645b 100644 --- a/docs/GettingStarted.md +++ b/docs/GettingStarted.md @@ -93,6 +93,8 @@ npm install -g react-native-cli If you get a permission error, try with sudo: `sudo npm install -g react-native-cli`. +If you get error `Cannot find module 'npmlog'`, try this before: `curl -0 -L http://npmjs.org/install.sh | sudo sh`. + The easiest way to install Xcode is via the [Mac App Store](https://itunes.apple.com/us/app/xcode/id497799835?mt=12).