Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
6.0.0
-
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
- is related to
-
CB-10668 move node_modules to package.json and update create script to copy from root
- Closed