Reputation: 6362
I have cordova 8.0.0 and I'm using cordova-android 7.1.
Everytime I run a command like
cordova plugin remove ...
# or
cordova plugin add ...
The commands take 8+ minutes to end. I checked my network stats and I saw that node is downloading loads of things the whole time. Seems like it's fetching every plugin at every command.
Why is cordova doing that? It's slowing so much my development...
Upvotes: 6
Views: 2579
Reputation: 2128
It seems to be a known issue. As stated here the only solution is to wait for Cordova 9 to be released. And it won't be until the end of the year at least...
Upvotes: 1
Reputation: 6362
So, I don't know why but I had some dependencies issues. The next time I ran npm i ...
for another package, it took loads of time (as long as after every cordova
command), and I got a message saying than more than one package has been updated.
Then the next cordova commands ran really faster.
So it seems that if you have some uninstalled npm packages in your package.json
file, cordova 8.0.0 is downloading them at every command...
Upvotes: 2