A
A
Alexey Tipa2014-07-08 01:23:58
Node.js
Alexey Tipa, 2014-07-08 01:23:58

Installing bower, grunt, etc... what's the difference between a global (-g) and a local install?

Please explain on your fingers ...
What is the difference in terms of the project that I am writing?
It means that, apart from the placement of files during installation, I don’t see (don’t understand) the difference.
Or is it all important if there are a lot of projects? Or it is necessary to put for each project (not globally)?
As for questions, you have already understood that when there is no clarity, then asking is not very successful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2014-07-08
@KayzerSoze

The global setting is usually used for tools. So, after npm i grunt-cli -g, the grunt command will appear in the system.
If this is some kind of library, then it must be installed locally. Among the reasons is that the project can rely on a particular version of the library than interfere with others.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question