What does -g parameter do when you are installing npm package using npm install command?
Experience Level: Junior
Tags: Angular CLI
Answer
The package will be installed globally.
Without the -g parameter, the package will be installed locally into the node_modules folder of your project folder.
Related Angular CLI job interview questions
Why should I use Angular CLI?
Angular CLI JuniorWhat command aliases do you use when using Angular CLI?
AngularAngular CLI JuniorHow do you build your Angular application using Angular CLI for use on production environment?
AngularAngular CLI JuniorHow do you build your Angular application using Angular CLI for use on a local or development environment?
AngularAngular CLI JuniorUsing Anular CLI, how do you create a new component that will be automatically imported to your feature module that is called feature-module1?
AngularAngular CLI Junior