node.js - What are the benefits of installing Express.js locally vs globally -
as understand it, there 2 ways install express.js.
usingnpm install express
- either package.json or via command line. method install express locally in node_modules folder. using npm install express -g
. method installs bundle globally on machine. i wondering benefits using either method. either 1 considered "best practice" on other?
for creating app, should install locally. allow utilize different express version each app make.
installing express globally allow utilize express
command line utility create boilerplate code , stuff. ideally, should install express in both places, create sure app develop run on local version.
node.js express
No comments:
Post a Comment