您好,欢迎来到二三娱乐。
搜索
您的当前位置:首页ReactNativie错误记录

ReactNativie错误记录

来源:二三娱乐

npm包管理错误

Unable to resolve module react/lib/ReactUpdates from /Users/user/Downloads/react-native-sudoku-master/node_modules/react-native/Libraries/react-native/react-native.js: Module does not exist in the module map or in these directories:
  /Users/user/Downloads/react-native-sudoku-master/node_modules/react-native/node_modules/react/lib
,  /Users/user/Downloads/react-native-sudoku-master/node_modules/react/lib

This might be related to 
To resolve try the following:
  1. Clear watchman watches: `watchman watch-del-all`.
  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
  3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start -- --reset-cache`.

RCTFatal + 104
-[RCTBatchedBridge stopLoadingWithError:] + 1138
__25-[RCTBatchedBridge start]_block_invoke_2 + 65
_dispatch_call_block_and_release + 12
_dispatch_client_callout + 8
_dispatch_main_queue_callback_4CF + 1054
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
__CFRunLoopRun + 2205
CFRunLoopRunSpecific + 420
GSEventRunModal + 161
UIApplicationMain + 159
main + 111
start + 1

Paste_Image.png

然后又修改了package.json的react版本美号,各种单独install react,再update,后来成功了
好像是因为包依赖的问题,react一直没有下下来,是网络问题?


Paste_Image.png

Copyright © 2019- yule263.com 版权所有 湘ICP备2023023988号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务