Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: cordova-res was not found on your PATH

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?

like image 738
Abdelfattah Elachkoura Avatar asked Jun 17 '19 10:06

Abdelfattah Elachkoura


2 Answers

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 !

like image 58
Manvender Singh Rathore Avatar answered Sep 28 '22 02:09

Manvender Singh Rathore


Install and save cordova-res to your project node_modules.

npm i cordova-res@latest --save

then execute,

ionic cordova resources ios --force
like image 25
haron68 Avatar answered Sep 28 '22 01:09

haron68