2017-10-05 108 views
1

我努力工作,在Fedora的26阵营本地人,我也跟着facebook tutorial再说吧。阵营原住民 - NPM启动不启动

一切都进行得非常顺利,直到我试图与NPM

npm start

启动应用程序 而收到此错误:

> [email protected] start $HOME/cardbook 
> react-native-scripts start 

9:31:54 AM: Starting packager... 
***ERROR STARTING PACKAGER*** 
Starting React Native packager... 
Scanning 770 folders for symlinks in $HOME/cardbook/node_modules (19ms) 
Loading dependency graph. 
Running packager on port 19001. 


jest-haste-map: Watchman crawl failed. Retrying once with node crawler. 
    Usually this happens when watchman isn't running. Create an empty `.watchmanconfig` file in your project's root folder or initialize a git or hg repository in your project. 
    Error: Watchman error: A non-recoverable condition has triggered. Watchman needs your help! 
The triggering condition was at timestamp=1507206724: inotify-add-watch($HOME/cardbook/node_modules/react-native-maps/lib/android/lib/build/tmp/expandedArchives/classes.jar_6745ow7srqaaq6vs8k7dkn33k/com/google/android/gms/common/data) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl 
All requests will continue to fail with this message until you resolve 
the underlying problem. You will find more information on fixing this at 
https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.html. 

附加信息:

  • 更夫版本:4.9.0
  • npm版本:3.10.10

任何纯洁和善良的灵魂能帮助我吗?

回答

1

我跑我的应用程序,现在我的手机上。我采用了一种启发式的方法,试图快速解决问题,然后信息缺乏。无论如何,我解决了它这样的:

首先,我卸载守望:

$ sudo make uninstall 

因此,与纱线(请注意,我没有使用NPM,它仍然无法正常工作),我收到以下提示:

yarn start 
yarn run v1.1.0 
$ react-native-scripts start 
11:15:08 AM: Unable to start server 
    See https://git.io/v5vcn for more information, either install watchman or run the following snippet: 
    sudo sysctl -w fs.inotify.max_user_instances=1024 
    sudo sysctl -w fs.inotify.max_user_watches=12288 
error Command failed with exit code 1. 

很显然,我跟着指示:

sudo sysctl -w fs.inotify.max_user_instances=1024 
sudo sysctl -w fs.inotify.max_user_watches=12288 

而且收到了我的QR码与更迭。

相关问题