react-native 遇到的错误
记录下在react-native开发中遇到的错误 ReferenceError: Can't find variable: __fbBatchedBridge...react-native启动用来做JavaScript的代码的服务,是本地的服务,App默认访问的host地址是 Android解决方案:
* 点击菜单键 在 ios解决方案:在 react-native start 错误错误信息: 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> (.../fb-watchman/index.js:198:18) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:191:7) at maybeClose (internal/child_process.js:852:16) at Socket.<anonymous> (internal/child_process.js:323:11) at emitOne (events.js:96:13) at Socket.emit (events.js:188:7) at Pipe._handle.close [as _onclose] (net.js:492:12) 解决方法:
重新安装 brew uninstall watchman brew link pcre brew install --HEAD watchman 如果出现下面的提示错误: Error: The `brew link` step did not complete successfully brew link --overwrite watchman ...... 直接运行命令:
出现Linking创建的信息: Linking /usr/local/Cellar/watchman/HEAD-bbd5957... 4 symlinks created 如果出现权限不足的情况,可以运行命令:
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |