When you install a package, for example gulp-sass , many folders appear in the node_modules folder. I didn’t have such a thing before, I can not understand the reason. Is this really the new npm that works?
1 answer
Last June, the 3rd version of npm .
One of its key innovations is a flat directory structure - dependencies of almost all packages are now installed in the root of the node_modules folder. Inside the same packages themselves folders, they fall only in the presence of conflicts.
This innovation primarily dramatically reduces duplication, reducing the cost of resources for storing and executing code for several identical packages within a project.
|