I do “expo upgrade 42.0.0”
√ Would you like to proceed? … yes
√ You are currently using SDK 40.0.0. Would you like to update to the latest version, 42.0.0? … yes
√ Would you like to upgrade the Expo app in the Android emulator? … no
√ Installed expo@^42.0.0
√ Validated configuration.
√ No additional changes necessary to app.json config.
× Failed to upgrade JavaScript dependencies: react-native-svg@12.1.1 @react-native-community/netinfo@6.0.0 expo-notifications@~0.12.3 react-native-safe-area-context@3.2.0 @react-native-community/masked-view@0.1.10 expo-local-authentication@~11.1.1 react-native-reanimated@~2.2.0 react-native-webview@11.6.2 expo-secure-store@~10.2.0 expo-status-bar@~1.0.4 @react-native-async-storage/async-storage@~1.15.0 @react-native-picker/picker@1.16.1 expo-application@~3.2.0 expo-screen-orientation@~3.2.1 react-native-screens@~3.4.0 expo-constants@~11.0.1 react-native-gesture-handler@~1.10.2 sentry-expo@^4.0.0 @react-native-community/slider@3.0.3 jest-expo@^42.0.0 react-native@https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz react@16.13.1 react-dom@16.13.1 react-native-web@~0.13.12
√ Updated known packages to compatible versions.
√ Removed package-lock.json and deleted node_modules.
× Running npm install failed. Please check npm-error.log for more information.
× Failed to clear packager cache with error: Can’t read JSON file: C:[file path]node_modules\expo\package.json
├─ File: C:[file path]node_modules\expo\package.json
└─ Cause: Error: ENOENT: no such file or directory, open
‘C:[file path]\package.json’
√ Cleared packager cache.
Automated upgrade steps complete.
…but this doesn’t mean everything is done yet!
The following packages were updated:
[updated package name]
The following packages were not updated. You should check the READMEs for those repositories to determine what version is compatible with your new set of packages:
@fortawesome/fontawesome-svg-core, @fortawesome/free-regular-svg-icons, @fortawesome/free-solid-svg-icons, @fortawesome/react-native-fontawesome, @ptomasroos/react-native-multi-slider, @react-navigation/bottom-tabs, @react-navigation/material-bottom-tabs, @react-navigation/material-top-tabs, @react-navigation/native, @react-navigation/stack, @sentry/react-native, axios, moment, native-base, query-string, radio-buttons-react-native, react-native-calendars, react-native-chart-kit, react-native-datepicker, react-native-device-info, react-native-dropdown-picker, react-native-easy-grid, react-native-elements, react-native-exception-handler, react-native-fetch-blob, react-native-flexi-radio-button, react-native-image-base64, react-native-keyboard-aware-scroll-view, react-native-linear-gradient, react-native-machine-info, react-native-orientation, react-native-paper, react-native-picker-select, react-native-responsive-fontsize, react-native-snap-carousel, react-native-svg-uri, react-native-switches, react-native-tab-view, react-native-testing-library, react-native-touch-id, react-native-vector-icons, react-test-renderer, babel-jest, enzyme, enzyme-adapter-react-16, jest, jest-environment-enzyme, jest-enzyme, regenerator-runtime
and node_modules files is don’t exist.
How can I reinstall the node_modules file.