I had a JSON error in my package and by accident deleted it. Is there any way to get it back?
Asked
Active
Viewed 1.2k times
4
-
2weren't you using any VCS like git? – mehulmpt Jul 26 '19 at 15:27
-
1Git? Your IDE local cache? Your trash? `npm init` and start from scratch? – Emile Bergeron Jul 26 '19 at 15:27
-
was it create-react-app? if yest then just generate one more blank project and take package.json. At least this will solve half of problem then you can install other stuff? – Indrajeet Latthe Jul 26 '19 at 15:37
-
thanks Indrajeet, this was a really stupid question sorry guys I'm such a noob at this – Dan Nugent Jul 26 '19 at 15:44
1 Answers
2
Well, if you are not using git or similar systems the last thing you can do is to use software like Recuva to restore a deleted file.

Emanuele Scarabattoli
- 4,103
- 1
- 12
- 21