无法为本机反应项目运行npm start

Abh*_*hra 6 reactjs react-native

这是我第一次尝试运行react-native项目.遵循反应原生方面提到的所有说明.并运行'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)
Run Code Online (Sandbox Code Playgroud)

Ada*_*son 12

尝试重新安装守望者:

npm r -g watchman 
brew update && brew upgrade
brew install watchman
Run Code Online (Sandbox Code Playgroud)

如果这不能解决问题,请尝试在此处发布的答案.

尝试通过以下方式重新安装libtool:

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

如果没有帮助,请尝试将其完全删除,然后重新尝试:

brew uninstall libtool