You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2016/02/28 09:46:24 UTC

[jira] [Resolved] (CB-10722) Cannot find module 'semver' (OSX platform)

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

Tobias Bocanegra resolved CB-10722.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: Master

there was a problem during npm packaging and some of the modules got lost :-(. the problem was fixed in CB-10668, and a new release will be cut soon.

in the meantime, you can add the platform via git url:

{noformat}
$ cordova platform add https://github.com/apache/cordova-osx.git#4.0.0
{noformat}


> Cannot find module 'semver' (OSX platform)
> ------------------------------------------
>
>                 Key: CB-10722
>                 URL: https://issues.apache.org/jira/browse/CB-10722
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, OSX
>    Affects Versions: 6.0.0
>         Environment: OSX 10.11.2
> Xcode 7.2.1
> node 5.7.0
> npm 3.6.0
>            Reporter: Laurent Zubiaur
>            Assignee: Tobias Bocanegra
>             Fix For: Master
>
>
> When adding OSX platform I get the following error (Cannot find module 'semver') although semver is installed.
> $ cordova platform add osx
> Adding osx project...
> Running command: /Users/lzubiaur/.cordova/lib/npm_cache/cordova-osx/4.0.0/package/bin/create /Users/lzubiaur/Dev/projects/node/tests/platforms/osx io.cordova.hellocordova HelloCordova
> module.js:341
>     throw err;
>     ^
> Error: Cannot find module 'semver'
>     at Function.Module._resolveFilename (module.js:339:15)
>     at Function.Module._load (module.js:290:25)
>     at Module.require (module.js:367:17)
>     at require (internal/module.js:16:19)
>     at Object.<anonymous> (/Users/lzubiaur/.cordova/lib/npm_cache/cordova-osx/4.0.0/package/bin/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:37:14)
>     at Module._compile (module.js:413:34)
>     at Object.Module._extensions..js (module.js:422:10)
>     at Module.load (module.js:357:32)
>     at Function.Module._load (module.js:314:12)
>     at Module.require (module.js:367:17)
> Error: /Users/lzubiaur/.cordova/lib/npm_cache/cordova-osx/4.0.0/package/bin/create: Command failed with exit code 1



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org