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