Answer the question
In order to leave comments, you need to log in
How to deprecate Bower in favor of NPM?
Good day. I use Bower in conjunction with NPM, but the problem is that the NPM repository has all the packages from Bower and even more. The problem is that the node_modules folder turns out to be very heavy, and many packages are simply not needed after publication. How can I leave only the packages I need?
Answer the question
In order to leave comments, you need to log in
All that is not needed after the publication of the package, install with the --dev flag. (-D for yarn)
https://docs.npmjs.com/files/package.json#devdepen...
The fact that node_modules is very large is difficult to deal with and most often not necessary. I don’t know how things are with npm now, but I’ve been on yarn for a couple of years - at the time of its appearance, it solved various npm problems with a certain degree of success (much faster installation, for example, etc.), put something there more optimally, and so on . Start by moving to it, if you haven't already, and we'll see.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question