From 52b64907a8d55373e03e697bf5bcf6ede6fe5dc7 Mon Sep 17 00:00:00 2001 From: Amjad Masad Date: Thu, 2 Apr 2015 21:56:25 -0700 Subject: [PATCH] Npm locking error fix --- docs/Troubleshooting.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/Troubleshooting.md b/docs/Troubleshooting.md index cb40c28c6..c1b278b0a 100644 --- a/docs/Troubleshooting.md +++ b/docs/Troubleshooting.md @@ -50,3 +50,11 @@ Permission settings prevent Watchman from loading. A recent update solves this, brew uninstall watchman brew install --HEAD watchman ``` + +## NPM locking error + +If in the `react-native init ` phase you saw npm fail with "npm WARN locking Error: EACCES" then try the following: +``` +sudo chown -R $USER ~/.npm +sudo chown -R $USER /usr/local/lib/node_modules +```