Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find underscore.js with cordova-5.1.1 #5

Open
nicois opened this issue Jun 24, 2016 · 0 comments
Open

cannot find underscore.js with cordova-5.1.1 #5

nicois opened this issue Jun 24, 2016 · 0 comments

Comments

@nicois
Copy link

nicois commented Jun 24, 2016

The strange thing is that the docker base implied it is cordova 5.1.1, but by default, cordova 4.0.2 is used.

$ cordova="docker run -it --rm --privileged -v /dev/bus/usb:/dev/bus/usb -v $PWD:/src cordova cordova"
$ $cordova platform add android@5.X.X
npm http GET https://registry.npmjs.org/cordova-android
npm http 200 https://registry.npmjs.org/cordova-android
npm http GET https://registry.npmjs.org/cordova-android
npm http 200 https://registry.npmjs.org/cordova-android
npm http GET https://registry.npmjs.org/cordova-android/-/cordova-android-5.1.1.tgz
npm http 200 https://registry.npmjs.org/cordova-android/-/cordova-android-5.1.1.tgz
Adding android project...
module.js:338
    throw err;
          ^
Error: Cannot find module 'underscore'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/root/.cordova/lib/npm_cache/cordova-android/5.1.1/package/node_modules/cordova-common/src/superspawn.js:23:9)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
Error: /root/.cordova/lib/npm_cache/cordova-android/5.1.1/package/bin/create: Command failed with exit code 1
    at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1015:16)
    at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant