2016-01-26 21 views
5

これは、反応ネイティブプロジェクトを実行する私の最初の試みです。反応ネイティブ側で言及されたすべての指示に従ってください。そして は、コマンドプロンプトでエラーの下に取得「NPM開始」を実行しました:反応ネイティブプロジェクトでnpm startを実行できません

 ERROR watchman--no-pretty get-sockname returned with exit code null dyld: Library not loaded: /usr/local/lib/libpcre.1.dylib 
    Referenced from: /usr/local/bin/watchman 
    Reason: image not found 

Error: watchman--no-pretty get-sockname returned with exit code null dyld: Library not loaded: /usr/local/lib/libpcre.1.dylib 
    Referenced from: /usr/local/bin/watchman 
    Reason: image not found 

    at ChildProcess.<anonymous> (/Users/z013mrq/AwesomeProject/node_modules/react-native/node_modules/sane/node_modules/fb-watchman/index.js:198:18) 
    at emitTwo (events.js:87:13) 
    at ChildProcess.emit (events.js:172:7) 
    at maybeClose (internal/child_process.js:818:16) 
    at Socket.<anonymous> (internal/child_process.js:319:11) 
    at emitOne (events.js:77:13) 
    at Socket.emit (events.js:169:7) 
    at Pipe._onclose (net.js:469:12) 

答えて

12

は、警備員を再インストールしてみてください:それはそれを修正しない場合

npm r -g watchman 
brew update && brew upgrade 
brew install watchman 

、答えposted hereを試してみてください。

で再インストールのlibtoolに試してみてください。それを完全に削除し、再び の上、再試行してみてください、助けにはなりません場合は

brew reinstall libtool --universal && brew unlink libtool && brew link libtool

brew uninstall libtool

+1

Linuxでも同じ問題が発生します。 brewの代わりに、正式なgitからインストールしてください。手順はFacebookの* Getting Started *ガイドに記載されています。 – Toerndev

関連する問題