If you have connected your GitHub with the code, then you can directly revert the changes in your package.json file and do npm i again. Or if you have your previous package.json file then replace it with the new one and then do the same. It will fix out your issue.