React Native的坑

2016-08-19  本文已影响27人  明月钓无痕
  1. Q:环境配置出现错误

    A:执行命令npm config set registry http://registry.npmjs.org/
    原因:npm请求使用 https 代替 http
  2. Q:运行错误
    报错信息: Unhandled JS Exception: Application [name] has not been registered. This is either due to a require() error during initialization or failure to call AppRegistry.registerComponent.


    报错信息

    A: 这是由于RN 的运行会借助于本地服务,打开终端. 现将终端关闭.运行新的项目时,终端会自动重新打开

上一篇 下一篇

猜你喜欢

热点阅读