Please show whether the lock file.and node_modules directory are still there too.
C:\Users\hp\garden-app> dir
Volume in drive C has no label.
Volume Serial Number is AC7B-AA4C
Directory of C:\Users\hp\garden-app
09/07/2021 12:25 PM <DIR> .
09/07/2021 12:25 PM <DIR> ..
09/07/2021 12:50 PM <DIR> .expo
09/02/2021 09:34 AM <DIR> .expo-shared
09/02/2021 02:29 AM 131 .gitignore
09/02/2021 02:29 AM 661 App.js
09/02/2021 02:29 AM 526 app.json
09/02/2021 09:34 AM <DIR> assets
09/02/2021 02:29 AM 113 babel.config.js
09/07/2021 12:47 PM <DIR> node_modules
09/07/2021 12:47 PM 893,255 package-lock.json
09/07/2021 12:32 PM 1,994 package.json
09/02/2021 10:12 AM 1,160 README.md
09/02/2021 09:34 AM <DIR> src
7 File(s) 897,840 bytes
7 Dir(s) 15,460,827,136 bytes free
OK. Something weird is going on on your machine.
Can I suggest the following?
Delete package-lock.json
. Delete node_modules
. Then replace your package.json
with the following:
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"@material-ui/core": "^4.12.3",
"@react-native-community/masked-view": "0.1.10",
"@react-native-community/picker": "1.6.6",
"@react-navigation/bottom-tabs": "^5.8.0",
"@react-navigation/drawer": "^5.12.9",
"@react-navigation/material-bottom-tabs": "^5.3.19",
"@react-navigation/native": "^5.9.8",
"@react-navigation/stack": "^5.14.9",
"expo": "^42.0.0",
"expo-font": "~9.2.1",
"expo-status-bar": "~1.0.4",
"native-base": "^2.15.2",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz",
"react-native-auth0": "^2.6.0",
"react-native-bottomsheet-reanimated": "0.0.22",
"react-native-carousel-cards": "^1.2.1",
"react-native-dropdownmenus": "^1.0.6",
"react-native-elements": "^2.3.1",
"react-native-gesture-handler": "~1.10.2",
"react-native-interactable-reanimted": "0.0.4",
"react-native-masonry-list": "^2.16.1",
"react-native-number-please": "^1.0.5",
"react-native-numeric-input": "^1.8.3",
"react-native-paper": "^4.9.2",
"react-native-picker-select": "^8.0.3",
"react-native-popup-menu": "^0.15.9",
"react-native-reanimated": "~2.2.0",
"react-native-safe-area-context": "3.2.0",
"react-native-screens": "~3.4.0",
"react-native-vector-icons": "^7.1.0",
"react-native-web": "~0.13.12",
"react-navigation-drawer": "^2.7.1",
"react-redux": "^7.2.1",
"reanimated-bottom-sheet": "^1.0.0-alpha.22",
"redux": "^4.0.5",
"rn-sliding-up-panel": "^2.4.4",
"styled-components": "^5.3.1",
"styled-system": "^5.1.5"
},
"devDependencies": {
"@babel/core": "~7.9.0",
"babel-preset-expo": "8.3.0"
},
"private": true
}
Then run: npm install --legacy-peer-deps
See if that sorts it out. If not, I suggest trying yarn
instead, but first try the above.
Hey it is working now, really appreciate it . Let me commit the changes to my github.
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.