Table of Contents

IT:AD:NPM:HowTo:Install

Summary

NPM is “Node Package Manager” and is installed with IT:AD:Node.JS.

But you need to update it after installing IT:AD:Node.JS.

Process

Update it by opening a IT:AD:CLI:

    npm update -g npm

There is no MAN (Unix) on Windows, but search works, although the first time it has to download files:

    Usage: npm <command>
    where <command> is one of:
        add-user, adduser, apihelp, author, bin, bugs, c, cache,
        completion, config, ddp, dedupe, deprecate, docs, edit,
        explore, faq, find, find-dupes, get, help, help-search,
        home, i, info, init, install, isntall, la, link, list, ll,
        ln, login, ls, outdated, owner, pack, prefix, prune,
        publish, r, rb, rebuild, remove, restart, rm, root,
        run-script, s, se, search, set, show, shrinkwrap, star,
        start, stop, submodule, tag, test, tst, un, uninstall,
        unlink, unpublish, unstar, up, update, version, view,
        whoami

    npm <cmd> -h     quick help on <cmd>
    npm -l           display full usage info
    npm faq          commonly asked questions
    npm help <term>  search for help on <term>
    npm help npm     involved overview

    Specify configs in the ini-formatted file:
        C:\Users\Sky\.npmrc
    or on the command line via: npm <command> --key value
    Config info can be viewed via: npm help config

    npm@1.1.63 C:\Program Files\nodejs\node_modules\npm

    C:\Users\Sky>npm search express
    npm WARN Building the local index for the first time, please be patient
    npm http GET https://registry.npmjs.org/-/all

Node Version Manager (NVM)

Node is being release often. So we need a sandbox to protect us from the volatility.