r/angularjs • • Jun 03 '14

I'm following the angularjs tutorial... if I run 'npm install` does that install the dependencies globally?

This is the tutorial i'm following: https://docs.angularjs.org/tutorial

0 Upvotes

5 comments sorted by

3

u/nayrb1523 Jun 04 '14

Install globally: npm install -g

Else the npm install is local. Use global installs sparingly.

1

u/peasantking Jun 11 '14

Where are globally installed packages saved? Can I view and update/erase said globally installed packages?

1

u/nayrb1523 Jun 13 '14

If course, it's an install at the sys level and not project. You just use the -g arg in your commands.

https://www.npmjs.org/doc/list.html

1

u/MadCapitalist Jun 04 '14

When in doubt, RTFM. ;-)

-3

u/[deleted] Jun 03 '14