Why does each angular app have its own copy of node_modules

Viewed 241

I'm a noob to Angular development. I installed node.js and did a global install of the Angular cli (npm install -g @angular/cli). Nevertheless, I also have to npm install angular (without the -g option) in every Angular project. This creates a node_modules directory in the project and installs a LOT of files in that directory. Files that take up a lot of disk space.

Is there a way to do a global install of @angular/cli @angular/common, etc., then use that one set of global files in my projects?

I haven't found any documentation for doing so.

Thanks.

0 Answers
Related