Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10722

Cannot find module 'semver' (OSX platform)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.0.0
    • Master
    • cordova-cli, cordova-osx
    • None
    • OSX 10.11.2
      Xcode 7.2.1
      node 5.7.0
      npm 3.6.0

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              tripod Tobias Bocanegra
              laurentzubiaur Laurent Zubiaur
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: