What does
npm install -g ...
stand for? I saw this in a tutorial but I don't know what the -g flag does. Does it install from Github?
Thanks.
It installs it globally and adds it to the path. This is nice for npm packages that are basically just command-line applications, like yarn.
You can always look up options here https://docs.npmjs.com/cli/install