- Q:环境配置出现错误
A:执行命令npm config set registry http://registry.npmjs.org/
原因:npm请求使用 https 代替 http -
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 的运行会借助于本地服务,打开终端. 现将终端关闭.运行新的项目时,终端会自动重新打开
网友评论