The question is, npm dumps all the packages into node_modules. But in this heap of dependencies it’s not very convenient to work with plugins going to production.

How to configure npm to load plugins into a directory, let's say libs, for further connection to the project?

  • dependecies has different fields for this: dependecies and devDependecies - Alexey Ten
  • What is this for? The list of installed packages does not allow you to work with the packages themselves, you need to go to the node_modules and look for the package there, but this is not very convenient. It is necessary that the packages are saved to another directory. - Mark Gross
  • Uh? And why bother to go there? What are you doing with them? - Alexey Ten
  • Yes, the most elementary to look at the path to the plug-in file already makes you climb into the node_modules. By packages, I mean third-party libraries and plugins. - Mark Gross
  • Hm The meaning of the module is to be whole. Why know where there are any files? It seems that you are using something wrong / not intended. - Alexey Ten

0