npm install bower using -g vs --save-dev
Using the --save
and --save-dev
flags when installing will add them to the project's package.json
. This allows anyone who might develop on or use the project to install the dependencies as needed with a simple npm install
command. By contrast, the -g
flag is global only to your local machine.