I’ve tried uninstalling and reinstalling node modules as chatGPT said. Also upgraded expo, installed expo cli, uninstalled/installed global expo as per guidelines. changed the network/wifi, followed every possible way as guided still getting the same error!!
ERROR:————————-from here—————————-
Starting Metro Bundler
FetchError: Invalid response body while trying to fetch https://api.expo.dev/v2/versions/latest: sha512-P6yRm04Cv/ak6XUOlpw/uTFrv3TYac3qeN5rfjcJlvYLWYv1CANdWsCBtbvW/tEPf98C98iLHzDzCu35DMXmvw== integrity checksum failed when using sha512: wanted sha512-P6yRm04Cv/ak6XUOlpw/uTFrv3TYac3qeN5rfjcJlvYLWYv1CANdWsCBtbvW/tEPf98C98iLHzDzCu35DMXmvw== but got sha512-/Ny5tVKTaRTbv6tIrzb3iWIUDC9GF8FEypuDv1o/b7r+qBkua8U+I3Rm/U9oeXwXfreIodXb0BUa+sqp4jf4Sg==. (29900 bytes)
FetchError: Invalid response body while trying to fetch https://api.expo.dev/v2/versions/latest: sha512-P6yRm04Cv/ak6XUOlpw/uTFrv3TYac3qeN5rfjcJlvYLWYv1CANdWsCBtbvW/tEPf98C98iLHzDzCu35DMXmvw== integrity checksum failed when using sha512: wanted sha512-P6yRm04Cv/ak6XUOlpw/uTFrv3TYac3qeN5rfjcJlvYLWYv1CANdWsCBtbvW/tEPf98C98iLHzDzCu35DMXmvw== but got sha512-/Ny5tVKTaRTbv6tIrzb3iWIUDC9GF8FEypuDv1o/b7r+qBkua8U+I3Rm/U9oeXwXfreIodXb0BUa+sqp4jf4Sg==. (29900 bytes)
at Pipeline.<anonymous> (C:UsersTejalProjectsconstro-plus-appnode_modulesnode-fetchlibindex.js:400:12)
at Pipeline.emit (node:events:531:35)
at Pipeline.emit (C:UsersTejalProjectsconstro-plus-appnode_modulesminipass-pipelinenode_modulesminipassindex.js:469:25)
at Pipeline.emit (C:UsersTejalProjectsconstro-plus-appnode_modulesminipass-pipelineindex.js:106:18)
at Pipeline.[_onError] (C:UsersTejalProjectsconstro-plus-appnode_modulesminipass-pipelineindex.js:84:12)
at IntegrityStream.<anonymous> (C:UsersTejalProjectsconstro-plus-appnode_modulesminipass-pipelineindex.js:74:44)
at IntegrityStream.emit (node:events:519:28)
at IntegrityStream.emit (C:UsersTejalProjectsconstro-plus-appnode_modulesminipasssrcindex.ts:1087:19)
at IntegrityStream.emit (C:UsersTejalProjectsconstro-plus-appnode_modulesssrilibindex.js:83:18)
at IntegrityStream.#onEnd (C:UsersTejalProjectsconstro-plus-appnode_modulesssrilibindex.js:117:12)
————————————to here————————-
This error I’m facing is in all the React Native projects, even those which are already present, and also for newly created ones! And this started to happen when I’ve finished uploading one of my projects to GitHub. I guess this was the reason or else it could be something else too. But it was still perfectly fine before.
Note:—- I think the code is not a problem here, because even a freshly built application is returning the exact same thing! And there’s a ‘minipass’ named error that can be seen in the above-mentioned error. I’ve even tried installing it using ‘npm install minipass’ (chatGPT) still it’s the same!
2
Answers
Finally my projects are running! Actually the problem was NPAV, due to which my packages were getting corrupted (This happened when i uploaded my project(running/working) into GitHub and tried to make a copy of it for my workspace using SSH key. The project got downloaded but was corrupted which impacted into my overall setup!).
Solution: steps: 1)To solve this, I excluded some of the folders(from NPAV). I've also attached all the folder names that I've added in NPAV as folder exclusions in the image below. 2) Restart computer 3) run commands such as: npm i, npm cache clear --force, npx expo start -c.
Note: I followed ChatGPT but I failed again and again until I followed the Antivirus/Firewall suggestions from ChatGPT itself and it worked. Thankyou.
[1
Solution: I’m providing the visualized solution below in the images respectively. After completing this steps "RESTART YOUR LAPTOP/DEVICE".And run commands such as: npm i, npm cache clear –force, npx expo start -c in your project’s directory on terminal/command prompt.
For better understanding you can also read my previous answer given in the Answers section.