加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

reactjs – 无法为反应原生项目运行npm start

发布时间:2020-12-15 05:03:37 所属栏目:百科 来源:网络整理
导读:这是我第一次尝试运行react-native项目.遵循反应原生方面提到的所有说明.然后跑’npm start’ 在命令提示符下获得以下错误: ERROR watchman--no-pretty get-sockname returned with exit code null dyld: Library not loaded: /usr/local/lib/libpcre.1.dyl
这是我第一次尝试运行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)
尝试重新安装守望者:
npm r -g watchman 
brew update && brew upgrade
brew install watchman

如果这不能解决问题,请尝试答案posted here.

Try to re-install libtool by:

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

If won’t help,try to remove it completely and re-try above
again:

brew uninstall libtool

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读