I updated to the latest Node version and now I'm getting ENOENT fails in React Native. How do I fix this?

Asked 4 months ago

I was using npm v6.14 and node v14, and after updating node to 16, my React Native project doesn't get run - I get an ENOENT error message. How do I fix it?

Pablo Brewer

Tuesday, October 04, 2022

According to the documentation, you're required to manually rebuild your project after upgrading your version of node, regardless of your operating system. I'd recommend using "npm rebuild" and seeing if it works. You can also delete the package-lock.json file and the node_modules folder, and then installing the project again.





Write an answer...

Cancel

Please follow our  Community Guidelines

Can't find what you're looking for?