IT:AD:NPM
Summary
The recommended Node Package Manager for IT:AD:Node.JS
Recipe
cdto the project directory (eg:d:\projects\foo\)- Use
npm initto make apackage.jsonfile, defining the directory as the root local directory. - Use
npm rootto verify that it knows where the root local directory is. - Use
npm install xyz -Gto install packages globally: - Use
npm install xyzto downloadgulp, or any other package.- IT:AD:npm:HowTo:Install Packages, avoiding using the
-Gflag as much as feasible:
- Use
npm install xyz -Dto downloadgulp, or any other package, as a build tool dependency. - Use
npm view -depth 0to view what's been downloaded into you local modules directory (eg:d:\projects\foo\node_modules\)