As I understand it, there are two ways to install Express.js.
- Using
npm install express
- either from package.json or via command line. This method will install express locally in your node_modules folder. - Using
npm install express -g
. This method installs the package globally on your machine.
I was just wondering what the benefits were to using either method. Is either one considered "best practice" over the other?