从React Native 0.45.1升级到0.46.4后出错

时间:2017-07-27 09:55:49

标签: react-native react-native-android react-native-ios

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`."

这是我将React Native从0.45.1升级到0.46.4后收到的错误。我跑了npm i但我仍然得到错误。我该如何解决?

1 个答案:

答案 0 :(得分:0)

尝试删除node_modules文件夹并使用npm install

重新安装软件包