2017-09-24 5 views
0

ich nach dem Kurs in this lessonreagieren-native Lauf ios nicht funktioniert

Versions are: 
    npm 5.4.2 
    homebrew 1.3.3 
    react-native-cli: 2.0.1 
    react-native: 0.48.4 
    watchman 4.9.0 
    node v6.6.0 

habe ich lief die Befehle:

[email protected]  ~/Documents/ReactNativeLearning  react-native init albums 
This will walk you through creating a new React Native project in /Users/admin/Documents/ReactNativeLearning/albums 
Using yarn v1.0.2 
Installing react-native... 
yarn add v1.0.2 
info No lockfile found. 
[1/4] Resolving packages... 
warning [email protected]: connect 2.x series is deprecated 
[2/4] Fetching packages... 
[3/4] Linking dependencies... 
warning "[email protected]" has unmet peer dependency "[email protected]". 
[4/4] Building fresh packages... 
success Saved lockfile. 
success Saved 496 new dependencies. 

✨ Done in 25.56s. 
dyld: lazy symbol binding failed: Symbol not found: _node_module_register 
    Referenced from: /Users/admin/node_modules/bufferutil/build/Release/bufferutil.node 
    Expected in: flat namespace 

dyld: Symbol not found: _node_module_register 
    Referenced from: /Users/admin/node_modules/bufferutil/build/Release/bufferutil.node 
    Expected in: flat namespace 

[1] 12606 abort  react-native init albums 
✘ [email protected]  ~/Documents/ReactNativeLearning  react-native run-ios 
Command `run-ios` unrecognized. Make sure that you have run `npm install` and that you are inside a react-native project. 
✘ [email protected]  ~/Documents/ReactNativeLearning  cd albums 
[email protected]  ~/Documents/ReactNativeLearning/albums  react-native run-ios 
dyld: lazy symbol binding failed: Symbol not found: _node_module_register 
    Referenced from: /Users/admin/node_modules/bufferutil/build/Release/bufferutil.node 
    Expected in: flat namespace 

dyld: Symbol not found: _node_module_register 
    Referenced from: /Users/admin/node_modules/bufferutil/build/Release/bufferutil.node 
    Expected in: flat namespace 

[1] 12632 abort  react-native run-ios 

Antwort

0

Versuchen Sie, eine npm install in Ihrem Projektordner zu tun und dann tun react-native run-ios

+0

versucht, check this out: https://gist.githubusercontent.com/anonymous/6ab41a6fc3499030fcf228ef34317c35/raw/8628a9bb7e27f053ce0398dabb99e49e1dc16db7/gistfile1.txt –

+0

Ist dies das erste Mal, wenn Sie init ein Projekt cli bro mit nativen reagieren? –

+0

Wenn es das erste Mal ist, wurde der '' 'reactive-native''' CLI nicht richtig installiert. Versuchen Sie, den CLI erneut zu deinstallieren und dann zu installieren. –

0

Ich habe es funktioniert es stellt sich heraus, dass ich eine andere Version von Knoten (v6.6.0) verwendet wurde. Also habe ich nvm installiert und meinen Knoten aktualisiert. Jetzt geht es!

Auch ich habe versucht, create-react-native-app statt reactive-native init. Das gleiche Problem ist aufgetreten. Stellen Sie sicher, dass Sie alle erforderlichen Tools aktualisieren und überprüfen Sie Ihre Knotenversion.