React native 从React Native 0.45.1升级到0.46.4后出错

React native 从React Native 0.45.1升级到0.46.4后出错,react-native,react-native-android,react-native-ios,React Native,React Native Android,React Native Ios,这是我在将React Native从0.45.1升级到0.46.4后收到的错误。我运行了npm I,但仍然得到错误。如何解决此问题?尝试删除节点模块文件夹,然后使用npm install重新安装软件包我只是想知道是否有办法解决此问题,因为我目前无法运行我的项目。 error: bundling failed: "Unable to resolve module `ReactNative` from `C:\\AnchorDev\\Anchor\\node_modules\\react-nativ

这是我在将React Native从0.45.1升级到0.46.4后收到的错误。我运行了npm I,但仍然得到错误。如何解决此问题?

尝试删除
节点模块
文件夹,然后使用
npm install重新安装软件包

我只是想知道是否有办法解决此问题,因为我目前无法运行我的项目。
error: bundling failed: "Unable to resolve module `ReactNative` from `C:\\AnchorDev\\Anchor\\node_modules\\react-native\\Libraries\\react-native\\react-native-implementation.js`: Module does not exist in the module map\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n  1. Clear watchman watches: `watchman watch-del-all`.\n  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.\n  3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start -- --reset-cache`."