DEV Community

NPM AUDIT FIX RUINED MY REACT NATIVE PROJECT

Emmanuel Oreoluwa on August 05, 2019

After i ran npm audit fix i started getting errors in my react native project
i can't start metro bundler, i can't run react native run android e.t.c
What should i do to save my project

Collapse
 
perkinsjr profile image
James Perkins

Did you check in the code? Because then you can revert to the commit prior to the one you made the changes to.

Collapse
 
aore profile image
Emmanuel Oreoluwa

Thank you It worked

Collapse
 
perkinsjr profile image
James Perkins

Glad it worked

Collapse
 
aore profile image
Emmanuel Oreoluwa

how do i clean node modules

Collapse
 
perkinsjr profile image
James Perkins

just delete the node_modules folder.

Thread Thread
 
aore profile image
Emmanuel Oreoluwa

I already ran npm install should I still go on and delete the folder

Collapse
 
codemouse92 profile image
Jason C. McDonald • Edited

Please consider adding the #help tag to your post to increase visibility. Hope you find your answer!

Collapse
 
aore profile image
Emmanuel Oreoluwa

Thanks

Collapse
 
jawwad22 profile image
jawwad22

You move to latest version of react native. move back to old version of react native.
react-native": "0.59.2"