2017-10-05 25 views
1

저는 Fedora 26에서 React Native로 작업하려고합니다. 그때까지 facebook tutorial을 따라 왔습니다.React Native - npm 시작이 시작되지 않습니다.

> [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. 

추가 정보 :

  • 경비원 버전 내가 NPM

    npm start

    와 응용 프로그램 를 시작하고이 오류가 시도 될 때까지

    모든 것이 아주 잘 가고 있었다 : 4.9.0

  • npm 버전 : 3.10.10

순수하고 친절한 영혼이 나를 도울 수 있습니까?

답변

1

지금 내 휴대폰에서 응용 프로그램을 실행 중입니다. 나는 발견 적 접근법을 따라 문제를 신속히 해결하려고 노력했다. 그런 다음 정보가 크게 부족하다. 어쨌든 나는 그런 식으로 그것을 해결 :

먼저 내가 파수꾼을 제거 :

$ sudo make uninstall 

그래서 원사 (I 여전히 작동하지 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 

을 그리고 succes에 내 QR 코드를 받았다.