Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

what does "npm add . " will do and how to revert back ? I mistakenly did that instead of git add

guys this is urgent I need help I did " npm add . " (there’s a space after add and then a fullstop)
how do i revert back , actually i wanted to do git add .

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

The most cleaner way is to:

  1. Remove the package/s from the package.json, you might need to compare your local file with file in base.

  2. Delete the node_modules folder

  3. Run npm install again

Another alternative is to run npm remove but if you did not get many new packages. Anyways my vote for the steps above.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading