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.

Comments

No Comments Yet.
Be the first to tell us what you think.
Angular CLI for beginners
Angular CLI for beginners

Are you learning Angular CLI ? Try our test we designed to help you progress faster.

Test yourself