How to ensure that a dependency's dependencies install directly below the "node_modules" directory?

Asked 2 years ago

Surely, there's a way to do it efficiently. How is everyone else doing it?

Dennis Gay

Monday, July 25, 2022

The best way to ensure that a dependency's dependencies will be installed directly below the "node_modules" directory is to use the --save-prod flag when installing the dependency.





Write an answer...

Cancel

Please follow our  Community Guidelines

Can't find what you're looking for?