I have a problem in my app ionic 4, when i run ionic cordova platform add android
I have this error :
[ERROR] cordova-res was not found on your PATH. Please install it globally:
npm i -g cordova-res
And when I run npm i -g cordova-res
I cant't install it.
How to solve this problem?
There are many offline/local options available for resizing Cordova resources. Ionic even has one now: cordova-res. I started the project in an attempt to deprecate the legacy resources service as soon as possible. You can try it today:
npm i -g cordova-res
ionic cordova resources --cordova-res
Hope this will help, Cheers !
Install and save cordova-res to your project node_modules.
npm i cordova-res@latest --save
then execute,
ionic cordova resources ios --force
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With