Marcel apache git [1] neither github git [2] for cordova-cli repo has cordova-lib pointing to 0.21.11 Both have in package.json "cordova-lib" : "0.21.10",
[1]: https://git-wip-us.apache.org/repos/asf?p=cordova-cli.git;a=blob;f=package.json;h=ae85efe323640efa48c769ecf0cc42fd634dff78;hb=HEAD#l31 [2]: https://github.com/apache/cordova-cli/blob/master/package.json#L31 The strange thing is that when I do "npm view [email protected] | grep cordova-lib" $ npm view [email protected] | grep cordova-lib { 'cordova-lib': '0.21.11', This means that the package.json use when doing "npm plublish" is not the one located in git tree Finally the reason that when doing "npm install -g [email protected]" is not installing [email protected] and is installing the old version 9.2.10 is because of npm-shrinkwrap.json inside cordova-cli the npm-shrinkwrap.json was not updated and the old [email protected] was included, so check out /Users/marcelk/.nvm/v0.10.31/ lib/node_modules/cordova/npm-shrinkwrap.json It points to [email protected] (master)$ cat /Users/csantana23/.nvm/v0.10.30/lib/node_modules/cordova/npm-shrinkwrap.json { "name": "cordova", "version": "3.6.1-0.2.10", "dependencies": { "cordova-lib": { *"version": "0.21.10",* On Mon, Sep 15, 2014 at 10:02 PM, Marcel Kinard <[email protected]> wrote: > I published the packages to the npm registry with the "rc" tag (not the > "latest" tag). So now when I do "npm -g install cordova@rc" I expect it > to also pull down the latest cordova-lib (0.21.11). But it is pulling down > the old one (0.21.10) instead. This causes the bad shasums from 3.6.1 to be > referenced. Any ideas on why this is happening? I'm about stumped. The > reference to the cordova-lib version in cordova-cli's package.json > dependency list does not have a tilde or caret or "x". > > marcelk-macbook:apache marcelk$ npm -g install cordova@rc > /Users/marcelk/.nvm/v0.10.31/bin/cordova -> > /Users/marcelk/.nvm/v0.10.31/lib/node_modules/cordova/bin/cordova > [email protected] /Users/marcelk/.nvm/v0.10.31/lib/node_modules/cordova > ├── [email protected] > ├── [email protected] > ├── [email protected] ([email protected]) > └── [email protected] ([email protected], [email protected], > [email protected], [email protected], [email protected], [email protected], > [email protected], [email protected], [email protected], [email protected], [email protected], > [email protected], [email protected], [email protected], [email protected], [email protected], > [email protected], [email protected], [email protected], [email protected], > [email protected]) > > marcelk-macbook:cordova marcelk$ grep '"cordova-lib"' > /Users/marcelk/.nvm/v0.10.31/lib/node_modules/cordova/package.json > "cordova-lib": "0.21.11", > marcelk-macbook:cordova marcelk$ grep version > /Users/marcelk/.nvm/v0.10.31/lib/node_modules/cordova/node_modules/cordova-lib/package.json > "version": "0.21.10", -- Carlos Santana <[email protected]>
