Npm locking error fix

This commit is contained in:
Amjad Masad 2015-04-02 21:56:25 -07:00
parent 72b9fccae2
commit 52b64907a8
1 changed files with 8 additions and 0 deletions

View File

@ -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 <project>` 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
```