From 879d1c1dba4c173d17e09e05f28ecf7e1bd99ce2 Mon Sep 17 00:00:00 2001 From: iboxgithub Date: Thu, 9 Mar 2017 09:18:20 -0800 Subject: [PATCH] Update Troubleshooting.md Summary: Following ericvicenti request on https://github.com/facebook/react-native/issues/10188#issuecomment-282448021 Hope it helps Thanks for submitting a pull request! Please provide enough information so that others can review your pull request: > **Unless you are a React Native release maintainer and cherry-picking an *existing* commit into a current release, ensure your pull request is targeting the `master` React Native branch.** Explain the **motivation** for making this change. What existing problem does the pull request solve? Prefer **small pull requests**. These are much easier to review and more likely to get merged. Make sure the PR does only one thing, otherwise please split it. **Test plan (required)** Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI. Make sure tests pass on both Travis and Circle CI. **Code formatting** Look around. Match the style of the rest of the codebase. See also Closes https://github.com/facebook/react-native/pull/12578 Differential Revision: D4682076 Pulled By: mkonicek fbshipit-source-id: 2fab5355a066eb3d8333e50f07ab3a258cbc002b --- docs/Troubleshooting.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/Troubleshooting.md b/docs/Troubleshooting.md index 5b190d2dd11..8d57fd84aca 100644 --- a/docs/Troubleshooting.md +++ b/docs/Troubleshooting.md @@ -93,3 +93,12 @@ If you run into issues where running `react-native init` hangs in your system, t ``` react-native init --verbose ``` + +## Unable to start react-native package manager (on Linux) +### Case 1: Error "code":"ENOSPC","errno":"ENOSPC" + +Issue caused by the number of directories [inotify](https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers) (used by watchman on Linux) can monitor. To solve it, just run this command in your terminal window +``` +echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p +``` +