2016-07-18 6 views
3

問題の原因を突き止めている。反応ネイティブrun-androidに失敗するエラーウォッチ

npm start でサーバーを起動します。コードをデプロイして、react-native run-androidの物理デバイスにadbを戻します。

サーバーで次のエラーが発生します。可能な修正は何ですか?どんな解決策も高く評価されています。

ERROR watch /home/pichate/projects/react/ReactNative/ReactNative/NF/node_modules/react-native/node_modules/fbjs-scripts/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/path-type/node_modules/pify ENOSPC 
{"code":"ENOSPC","errno":"ENOSPC","syscall":"watch /home/pichate/projects/react/ReactNative/ReactNative/NF/node_modules/react-native/node_modules/fbjs-scripts/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/path-type/node_modules/pify","filename":"/home/pichate/projects/react/ReactNative/ReactNative/NF/node_modules/react-native/node_modules/fbjs-scripts/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/path-type/node_modules/pify"} 
Error: watch /home/pichate/projects/react/ReactNative/ReactNative/NF/node_modules/react-native/node_modules/fbjs-scripts/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/path-type/node_modules/pify ENOSPC 
    at exports._errnoException (util.js:870:11) 
    at FSWatcher.start (fs.js:1234:19) 
    at Object.fs.watch (fs.js:1262:11) 
    at NodeWatcher.watchdir (/home/pichate/projects/react/ReactNative/ReactNative/NF/node_modules/react-native/node_modules/sane/src/node_watcher.js:144:20) 
    at Walker.<anonymous> (/home/pichate/projects/react/ReactNative/ReactNative/NF/node_modules/react-native/node_modules/sane/src/node_watcher.js:353:12) 
    at emitTwo (events.js:87:13) 
    at Walker.emit (events.js:172:7) 
    at /home/pichate/projects/react/ReactNative/ReactNative/NF/node_modules/react-native/node_modules/sane/node_modules/walker/lib/walker.js:69:16 
    at /home/pichate/projects/react/ReactNative/ReactNative/NF/node_modules/react-native/node_modules/graceful-fs/graceful-fs.js:142:16 
    at /home/pichate/projects/react/ReactNative/ReactNative/NF/node_modules/react-native/node_modules/graceful-fs/graceful-fs.js:142:16 
+0

ソリューションを見つけましたか? –

答えて

1

これはウォッチマンの問題です。それはあまりにも多くのファイルを見ています。設定されている場合は、ウォッチマンを使用せずに制限を取り消します。これは、以下のコマンドで修正できます。ターミナルでは次のコマンドを実行します。

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p 

希望すると、これが役に立ちます。

+0

これは私のためにやった。ありがとう! –

+0

あなたはこのコマンドを説明できますか? – Man

関連する問題