I recently started using npm to manage js packages. Although I have a fair understanding of package management in different enivronments (say using apt, rvm / gem, pythonbrew / virtualenv / pip), I donβt quite understand how npm fits completely.
I would like to know more about how the -g flag works and why I should use it. As with most blogs and wikis, they refer to the use of "-g" during installation without explanation, and I understand that these packages are installed globally.
- But why should I always install these packages globally?
- What does it mean to install these packages without the "-g" flag?
- What should I do with installed packages locally, say, isolated for different projects?
- How can I make a list of npm packages used in a project and lay it out in a project if I need to check it using version control (if possible at all)?
npm
suVasH ..... Jan 18 '12 at 12:18 2012-01-18 12:18
source share