csantanapr / grunt-cordovacli

Wraps web app with Cordova CLI using GruntJS
Apache License 2.0
60 stars 31 forks source link

When the application is directly dependent on "cordova", "grunt-cordovacli" does not work. #2

Closed bouzuya closed 10 years ago

bouzuya commented 10 years ago

When the application is directly dependent on "cordova", "grunt-cordovacli" does not work.

package.json

{
  "name": "grunt-cordovacli-doesnotwork",
  "version": "0.0.0",
  "dependencies": {
    "cordova": "^3.4.0-0.1.3",
    "grunt": "^0.4.4",
    "grunt-cordovacli": "^0.3.4"
  }
}

console

$ grunt cordovacli
Loading "cordovacli.js" tasks...ERROR
>> Error: Unable to read "/home/user/cordovacli-doesnotwork/node_modules/grunt-cordovacli/node_modules/cordova/package.json" file (Error code: ENOENT).
nicinabox commented 10 years ago

Also seeing this. Brought my project to a full stop ;(

jernejcic commented 10 years ago

Been seeing this for a while. Very annoying.

keyz182 commented 10 years ago

I'm suffering from this issue too. Current workaround is:

cd node_modules/grunt-cordovacli/
npm install
cd ../..