A
A
Artem Silantiev2016-03-21 11:51:22
linux
Artem Silantiev, 2016-03-21 11:51:22

How to disallow "node_modules/.bin" directories with many link files?

I noticed such a thing that in node.js applications, in some directories like 'node_modules/.bin/' of the application, as well as its modules and submodules, a large number of link files are created that point to the same file. The name of these links looks like "{name} ({n})", and they usually refer to "../{name}/bin/{name}" or something like that from time to time. These reference files are constantly created at an unspecified frequency while the application is running, although if you delete these directories, this seems to stop happening, but this still needs to be checked.
But the point here is something else, how would such unreasonable and inefficient behavior in the system be stopped at all when launching new node.js applications? I noticed this only because one application is synchronized in the cloud, and in the history of the cloud I saw that hundreds and thousands of such link files are constantly being added to such directories.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max Sysoev, 2016-03-31
@AntiStream

Sorry, of course, but RTFM
https://docs.npmjs.com/cli/install

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question