You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Suraj Pindoria <su...@yahoo.com.INVALID> on 2014/09/09 02:26:06 UTC
Platform cache issue with browser
Hey,
I am having an issue when trying to add the browser as a platform. It is downloading the browser module from the npm registry and saving into "~/.cordova/lib/npm_cache/" but it is installing the node_modules folder into a different folder than my source code. The source code is in "~/.cordova/lib/npm_cache/cordova-browser/3.5.0/package/bin/" and node_modules are being installed in "~/.cordova/lib/npm_cache/cordova-browser/3.5.0/package/cordova/master/".
This has to do with the custom platform cache logic. Has anyone run into a similar issue? I have been trying to debug for a couple days and have not made much progress.
Thanks,
Suraj.
Re: Platform cache issue with browser
Posted by Andrew Grieve <ag...@chromium.org>.
The npm-based download of platforms is still quite new, as is the need
for platforms to have npm dependencies. Android and iOS have some
checked in node_modules. I believe blackberry solved this using
"bundleDependencies" when publishing to npm.
On Mon, Sep 8, 2014 at 8:36 PM, Brian LeRoux <b...@brian.io> wrote:
> would be worth us exploring using npm to manage deps (like, vanilla npm)
>
> this is precisely the issue w/ maintaining this unnecessary logic ourselves
>
> On Mon, Sep 8, 2014 at 5:26 PM, Suraj Pindoria <
> suraj.pindoria@yahoo.com.invalid> wrote:
>
>> Hey,
>>
>> I am having an issue when trying to add the browser as a platform. It is
>> downloading the browser module from the npm registry and saving into
>> "~/.cordova/lib/npm_cache/" but it is installing the node_modules folder
>> into a different folder than my source code. The source code is in
>> "~/.cordova/lib/npm_cache/cordova-browser/3.5.0/package/bin/" and
>> node_modules are being installed in
>> "~/.cordova/lib/npm_cache/cordova-browser/3.5.0/package/cordova/master/".
>>
>> This has to do with the custom platform cache logic. Has anyone run into
>> a similar issue? I have been trying to debug for a couple days and have
>> not made much progress.
>>
>> Thanks,
>> Suraj.
Re: Platform cache issue with browser
Posted by Brian LeRoux <b...@brian.io>.
would be worth us exploring using npm to manage deps (like, vanilla npm)
this is precisely the issue w/ maintaining this unnecessary logic ourselves
On Mon, Sep 8, 2014 at 5:26 PM, Suraj Pindoria <
suraj.pindoria@yahoo.com.invalid> wrote:
> Hey,
>
> I am having an issue when trying to add the browser as a platform. It is
> downloading the browser module from the npm registry and saving into
> "~/.cordova/lib/npm_cache/" but it is installing the node_modules folder
> into a different folder than my source code. The source code is in
> "~/.cordova/lib/npm_cache/cordova-browser/3.5.0/package/bin/" and
> node_modules are being installed in
> "~/.cordova/lib/npm_cache/cordova-browser/3.5.0/package/cordova/master/".
>
> This has to do with the custom platform cache logic. Has anyone run into
> a similar issue? I have been trying to debug for a couple days and have
> not made much progress.
>
> Thanks,
> Suraj.