cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Grieve <agri...@chromium.org>
Subject Re: no such file: ~/.cordova\lib\android\cordova\3.1.0\framework\assets\www\cordova.js
Date Fri, 11 Oct 2013 15:17:19 GMT
I think that likely is the case. See if creating a dummy project on the
same machine fixes it.

Clearly a poor design choice. Filed an issue for it:
https://issues.apache.org/jira/browse/CB-5063


On Fri, Oct 11, 2013 at 9:32 AM, Axel Nennker <ignisvulpis@gmail.com> wrote:

> Hi,
> I moved to a new developement machine and installed the latest phonegap
> using npm -g install phonegap.
> Then I checked out a phonegap project (3.0) from our git repo.
>
> Now I want to build the Android part but get the message below.
>
> Is this happening because I never did a "phonegap platform add android"
> here?
> Yes we are checking in the platforms/android directory (which might not be
> the pure phonegap CLI way to do things)
>
> How can I fix this?
>
> cheers
> Axel
>
> $ phonegap local build android
> [phonegap] compiling Android...
>
> fs.js:427
>   return binding.open(pathModule._makeLong(path), stringToFlags(flags),
> mode);
>                  ^
> Error: ENOENT, no such file or directory
> 'C:\Users\ignisvulpis\.cordova\lib\andr
> oid\cordova\3.1.0\framework\assets\www\cordova.js'
>     at Object.fs.openSync (fs.js:427:18)
>     at Object.fs.readFileSync (fs.js:284:15)
>     at Object.module.exports.update_www
> (c:\Users\ignisvulpis\AppData\Roaming\np
>
> m\node_modules\phonegap\node_modules\cordova\src\metadata\android_parser.js:183:
> 70)
>     at Object.module.exports.update_project
> (c:\Users\ignisvulpis\AppData\Roamin
>
> g\npm\node_modules\phonegap\node_modules\cordova\src\metadata\android_parser.js:
> 213:14)
>     at
> c:\Users\ignisvulpis\AppData\Roaming\npm\node_modules\phonegap\node_modul
> es\cordova\src\prepare.js:88:32
>     at
> c:\Users\ignisvulpis\AppData\Roaming\npm\node_modules\phonegap\node_modul
> es\cordova\src\lazy_load.js:48:31
>     at Object.module.exports.custom
> (c:\Users\ignisvulpis\AppData\Roaming\npm\no
> de_modules\phonegap\node_modules\cordova\src\lazy_load.js:57:34)
>     at Object.lazy_load [as cordova]
> (c:\Users\ignisvulpis\AppData\Roaming\npm\n
> ode_modules\phonegap\node_modules\cordova\src\lazy_load.js:43:24)
>     at Object.module.exports.based_on_config
> (c:\Users\ignisvulpis\AppData\Roami
> ng\npm\node_modules\phonegap\node_modules\cordova\src\lazy_load.js:134:28)
>     at
> c:\Users\ignisvulpis\AppData\Roaming\npm\node_modules\phonegap\node_modul
> es\cordova\src\prepare.js:81:27
>
> ignisvulpis@NAMENLOS ~/git/phonegap (master)
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message