2016-04-01 6 views
0

Der folgende Fehler trat auf, als versucht wurde, meine App zum Testen auf dem Mobiltelefon bereitzustellen.Native iOS-Bereitstellungsfehler melden

die App-Funktion in der Xcode Simulator, und war in der Lage, in die App in iPhone zum Testen zu exportieren.

nach dem Ausführen der npm-Start ist der folgende Fehler aufgetreten.

während die iPhone App geladen hat, aber nicht mit dem Entwicklungsserver verbinden, da nicht in der Lage, npm zu starten.

Und ja, sowohl das iPhone als auch mein Computer befinden sich im selben drahtlosen Netzwerk.

┌────────────────────────────────────────────────────────────────────────────┐ 
│ 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 
    /Users/jimmylin/dev/ga/WalkingTour/SohoDuck 

[10:40:02 AM] <START> Building Dependency Graph 
[10:40:02 AM] <START> Crawling File System 
[Hot Module Replacement] Server listening on /hot 

React packager ready. 

ERROR: Unknown option --no-pretty 

ERROR: Unknown option --no-pretty 

Watchman: watchman--no-pretty get-sockname returned with exit code 1 ERROR: Unknown option --no-pretty 

ERROR watchman--no-pretty get-sockname returned with exit code 1 ERROR: Unknown option --no-pretty 

Error: watchman--no-pretty get-sockname returned with exit code 1 ERROR: Unknown option --no-pretty 

    at ChildProcess.<anonymous> (/Users/jimmylin/dev/ga/WalkingTour/SohoDuck/node_modules/fb-watchman/index.js:198:18) 
    at emitTwo (events.js:100:13) 
    at ChildProcess.emit (events.js:185:7) 
    at maybeClose (internal/child_process.js:850:16) 
    at Socket.<anonymous> (internal/child_process.js:323:11) 
    at emitOne (events.js:90:13) 
    at Socket.emit (events.js:182:7) 
    at Pipe._onclose (net.js:477:12) 

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

npm ERR! Darwin 15.3.0 
npm ERR! argv "/usr/local/Cellar/node/5.9.1/bin/node" "/usr/local/bin/npm" "start" 
npm ERR! node v5.9.1 
npm ERR! npm v3.7.3 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] start: `node node_modules/react-native/local-cli/cli.js start` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] start script 'node node_modules/react-native/local-cli/cli.js 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 SohoDuck package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node node_modules/react-native/local-cli/cli.js start 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs SohoDuck 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls SohoDuck 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /Users/jimmylin/dev/ga/WalkingTour/SohoDuck/npm-debug.log 

jeder Vorschlag würde sehr geschätzt werden.

+0

Wie haben Sie Wächter installiert? Über Homebrew oder Npm? – purii

+0

@purii ich Brau installieren Wächter und fließen, dann npm installieren beide lokal –

+0

Also Sie installiert über brew AND npm? – purii

Antwort

3

Correct installation of dependencies

  1. Deinstallieren watchman und flow über npmundhomebrew
  2. Installieren watchman und flownur über homebrew

    brew install watchman
    brew install flow

+0

Vielen Dank für alle hilft .. in der Lage, den Entwicklungsserver jetzt –

+1

zu starten Sie sollten die Antwort akzeptieren dann @ JimmyJ.Lin – rooftop

+1

Nur die Antwort, @ JimmyJ.Lin, um anderen zu helfen, die die gleichen Probleme wie Sie haben könnten . – purii