You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Filip Maj (JIRA)" <ji...@apache.org> on 2013/07/03 20:46:22 UTC

[jira] [Resolved] (CB-4073) npm install of cordova-cli regularly fails due to express 3.0.0alpha1

     [ https://issues.apache.org/jira/browse/CB-4073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj resolved CB-4073.
---------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.0

I've updated the package.json with a proper major.minor.patch version requirement for express. Thanks for the tip!

I've published cordova 2.9.1 on npm which should resolve this problem.
                
> npm install of cordova-cli regularly fails due to express 3.0.0alpha1
> ---------------------------------------------------------------------
>
>                 Key: CB-4073
>                 URL: https://issues.apache.org/jira/browse/CB-4073
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 2.9.0
>         Environment: Mac OS X 10.8.4
> Node v0.10.12
>            Reporter: Matt Gaunt
>            Assignee: Filip Maj
>             Fix For: 3.0.0
>
>
> When running sudo npm install -g cordova I get the following error:
> npm ERR! TypeError: Invalid Version: 3.0.0alpha1
> npm ERR!     at new SemVer (/usr/local/lib/node_modules/npm/node_modules/semver/semver.js:257:11)
> npm ERR!     at SemVer.compare (/usr/local/lib/node_modules/npm/node_modules/semver/semver.js:296:13)
> npm ERR!     at compare (/usr/local/lib/node_modules/npm/node_modules/semver/semver.js:410:31)
> npm ERR!     at rcompare (/usr/local/lib/node_modules/npm/node_modules/semver/semver.js:420:10)
> npm ERR!     at Array.sort (native)
> npm ERR!     at Function.maxSatisfying (/usr/local/lib/node_modules/npm/node_modules/semver/semver.js:838:6)
> npm ERR!     at next (/usr/local/lib/node_modules/npm/lib/cache.js:699:21)
> npm ERR!     at /usr/local/lib/node_modules/npm/lib/cache.js:678:5
> npm ERR!     at saved (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:138:7)
> npm ERR!     at Object.oncomplete (fs.js:107:15)
> npm ERR! If you need help, you may report this log at:
> npm ERR!     <http://github.com/isaacs/npm/issues>
> npm ERR! or email it to:
> npm ERR!     <np...@googlegroups.com>
> npm ERR! System Darwin 12.4.0
> npm ERR! command "node" "/usr/local/bin/npm" "-g" "install" "generator-cordova"
> npm ERR! cwd /Users/mattgaunt/Programming/Workspace/generator-cordova-matt
> npm ERR! node -v v0.10.12
> npm ERR! npm -v 1.3.1
> Changing the package.json for express from 3.0 to 3.0.0 seems to fix the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira