R
R
RodgerFox2017-07-28 15:23:34
macOS
RodgerFox, 2017-07-28 15:23:34

What's the best way to keep npm directories clean on OS X?

Hello, I switched to OS X, after installing packages globally, I was annoyed by the insane amount of files in the funder and realized my mistake.
Ok, I can not show this bunch of garbage in the library, but what is the best way to store such files (plugins from node_modules) and other projects in the system?
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GrimJack, 2017-07-28
@GrimJack

Try to dockerize projects and install globally inside a container

A
Alexander, 2017-07-28
@OneFive

Given that the golobal packages are placed in one folder, the problem is not clear. If the problem is with the size itself, you can use pnpm which creates directory links when duplicating packages instead of actually installing the package again.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question