2017-03-06 13 views
1

NPM -v:3.10.10 反応し、ネイティブ-v:0.1.7 ノード-v:v6.9.5 のubuntu:16.04 夜警 - V:反応するネイティブのinitプロジェクト CDプロジェクト を実行Afrer 4.5.0npm ERR! [email protected]起動スクリプト '反応し、ネイティブスタート' で失敗しました

と反応し、ネイティブ実行アンドロイド 、私は、サーバーを実行するためにNPM開始を実行すると、私はこのエラーを持っている:

[email protected] start /home/sofiane/projet/merde2 
> react-native start 

Cannot parse yarn version: 0.22 
Scanning 547 folders for symlinks in /home/sofiane/projet/project/node_modules (3ms) 
┌────────────────────────────────────────────────────────────────────────────┐ 
│ Running packager on port 8081.           │ 
│                   │ 
│ Keep this packager running while developing on any JS projects. Feel  │ 
│ free to close this tab and run your own packager instance if you   │ 
│ prefer.                 │ 
│                   │ 
│ https://github.com/facebook/react-native         │ 
│                   │ 
└────────────────────────────────────────────────────────────────────────────┘ 
Looking for JS files in 
    /home/sofiane/projet/project 

Loading dependency graph... 
React packager ready. 

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: A non-recoverable condition has triggered. Watchman needs your help! 
The triggering condition was at timestamp=1488805737: inotify-add-watch(/home/sofiane/projet/sql3/node_modules/react-native/ReactAndroid/src/main/third-party/java/junit) -> 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 

ERROR A non-recoverable condition has triggered. Watchman needs your help! 
The triggering condition was at timestamp=1488805737: inotify-add-watch(/home/sofiane/projet/sql3/node_modules/react-native/ReactAndroid/src/main/third-party/java/junit) -> 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 

{"watchmanResponse":{"version":"4.5.0","error":"A non-recoverable condition has triggered. Watchman needs your help!\nThe triggering condition was at timestamp=1488805737: inotify-add-watch(/home/sofiane/projet/sql3/node_modules/react-native/ReactAndroid/src/main/third-party/java/junit) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl\nAll requests will continue to fail with this message until you resolve\nthe underlying problem. You will find more information on fixing this at\nhttps://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch\n"}} 
Error: A non-recoverable condition has triggered. Watchman needs your help! 
The triggering condition was at timestamp=1488805737: inotify-add-watch(/home/sofiane/projet/sql3/node_modules/react-native/ReactAndroid/src/main/third-party/java/junit) -> 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 

    at ChildProcess.<anonymous> (/home/sofiane/projet/project/node_modules/fb-watchman/index.js:207:21) 
    at emitTwo (events.js:106:13) 
    at ChildProcess.emit (events.js:191:7) 
    at maybeClose (internal/child_process.js:877:16) 
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 

See http://facebook.github.io/react-native/docs/troubleshooting.html 
for common problems and solutions. 

npm ERR! Linux 4.8.0-39-generic 
npm ERR! argv "/home/sofiane/.nvm/v6.9.5/bin/node" "/home/sofiane/.nvm/v6.9.5/bin/npm" "start" 
npm ERR! node v6.9.5 
npm ERR! npm v3.10.10 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] start: `react-native start` 
npm ERR! Exit status 11 
npm ERR! 
npm ERR! Failed at the [email protected] start script 'react-native start'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the merde2 package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  react-native start 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs merde2 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls merde2 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /home/sofiane/projet/project/npm-debug.log 
+0

をあなたのアプリをアンインストールするこのコマンドのAndroid AVDを使用して –

+0

試みを実行する前に、AVDを開始し、その後、それはuはすべてのためにそれをアンインストールすることを忘れてはいけない役立つかもしれない再試行しなかったんユーザー。 –

+0

私は私の電話adb usbを使用しています、私は問題は警備員にあると思うが、私はそれを解決する方法がわからない... –

答えて

2

I ubuntuで同じ問題を抱えていましたUSBからの私のデバイスが再起動しました。最初にすべてのことは、それを保存して、uは、プロジェクトを作成したフォルダに移動した後、この

"scripts": { 
"prepare-repository": "npm i -g react-native-cli yarn;yarn install; react-native link", 
"emulator": "emulator -avd Nexus5V6L23_x86_64 -scale 1.0", 
"install": "react-native run-android", 
"start": "react-native start --reset-cache", 
"android": "npm run install && npm run start", 
"clean": "watchman watch-del-all && npm cache clean && cd android && ./gradlew clean && cd ..", 
"test": "jest" 
} 

でスクリプトを置き換えるあなたのpackages.json内部にこれらの行を追加しますお勧めします。私の家/仕事場/デモを言うことができます。その実行スクリプト

npm run clean this will clear all cache 

内部でその

npm run android 

た後は、デバイス内のアプリと同様に、スタート・リセットを実行することができますなら、私が知っているcache.Let。

編集!!! 時には ADBリバースTCP追加:NPMの実行アンドロイドを実行する前に、8081は、あなたはtricj

+0

Exellent、ありがとう。 –

+0

お待ちしています。 –

関連する問題