Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

When you install a package using npm with the flag -g, it means that the package is global, i.e. available from any current working directory. The default is to only search the current directory hierarchy for a folder called "node_modules". That way every project that you work on can have its own versions of every library, instead of sharing them for the entire system. You can learn more about "global" vs "local" packages by reading the npm manual.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: