Why Angular 2+ need to be pre-installed before creating project since it has node_modules installed itself?

83 Views Asked by At

Angular-cli needs to be installed before creating project globally or locally, but as far I know every angular project has it's own node_modules with binaries and package-lock.json hence it is a complete installation itself. Today I started using npx for creating projects with temporary local angular-cli installation in cache. Afterwards it disappears and node_modules within created projects are sufficient to utilize angular-cli. Because of that I am not sure why do we need pre-installed cli. Can't angular just download packages right away and install itself with a project creation?

0

There are 0 best solutions below