cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Santana <>
Subject cordova cli global vs. local install
Date Mon, 09 Sep 2013 15:48:03 GMT
What does the community think of installing cordova only locally and not

# Installing Cordova locally will provide:

- A way to use different versions of cordova on the same system/os.
- A way to specify cordova as a dependency in package.json for an App
- A way to sandbox cordova and checking into source control  for an App

# [GruntJS]( is a project that already
takes this approach:

1. User installs `grunt-cli` globally instead of grunt
    npm -g install grunt-cli`

2. User installs `grunt` locally
   npm install grunt --save-dev

3. When user runs `grunt` it will run a short script `/usr/local/bin/grunt`
(about 40 lines)
    It will resolve and use grunt from cwd (current working directory)

# Proposal:

1. Have 2 npm packages
- cordova-cli
- cordova

2. create cordova-cli package and update docs
cordova-cli will be almost indentical to grunt-cli

3. codova package is not longer get's install as `bin\cordova` and instead
run with

If you want to know more about grunt and why grunt swtiched from being
installed globally to now being install locally a podcast came out last
Friday where the author of GruntJS (Ben Alman) explains more details

Carlos Santana

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message