T
T
ttas2014-04-23 22:14:55
npm
ttas, 2014-04-23 22:14:55

How to restore npm-package?

The example is simple. There is a NodeJS project. The node_modules/ directory is in .gitignore. Suddenly, someone made their changes by hand in some of the local packages. Question. How can I restore a package to its original state? Other than that $ rm -fr node_modules/package_name; npm install, I don't see any other way. Is there a special/nice solution (npm is a package manager after all) other than adding node_modules/ under git? Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question