Sandy February 2016

Cordova - what will happen if I run multiple time npm install -g cordova?

I have window 7 OS, through by cmd what will happen if I run multiple time npm install -g cordova ?

I am facing following error :- npm ERR! fetch failed https://registry.npmjs.org/cordova-app-hello-world/-/cordo va-app-hello-world-3.10.0.tgz

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Sandy_PC>node --version
v4.3.0

C:\Users\Sandy_PC>npm unistall -g cordova

Usage: npm <command>

where <command> is one of:
    access, add-user, adduser, apihelp, author, bin, bugs, c,
    cache, completion, config, ddp, dedupe, deprecate, dist-tag,
    dist-tags, docs, edit, explore, faq, find, find-dupes, get,
    help, help-search, home, i, info, init, install, issues, la,
    link, list, ll, ln, login, logout, ls, outdated, owner,
    pack, ping, prefix, prune, publish, r, rb, rebuild, remove,
    repo, restart, rm, root, run-script, s, se, search, set,
    show, shrinkwrap, star, stars, start, stop, t, tag, team,
    test, tst, un, uninstall, unlink, unpublish, unstar, up,
    update, upgrade, v, verison, 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\Sandy_PC\.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

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

C:\Users\Sandy_PC>npm install -g cordova
npm ERR! fetch failed https://registry.npmjs.org/cordova-app-hello-wor        

Answers


Alex Rumba Nicked February 2016

npm install -g cordova fetches whatever new version of cordova is available in the repo and installs it in your device replacing the previous version. npm update -g cordova does the same thing. However, with the npm install, you get the choice of choosing the specific version. eg: npm install -g cordova@3.1.0-0.2.0 as such.

Post Status

Asked in February 2016
Viewed 1,257 times
Voted 7
Answered 1 times

Search




Leave an answer