ionic-team / ionic-app-scripts

App Build Scripts for Ionic Projects
http://ionicframework.com/
MIT License
608 stars 303 forks source link

Illegal operation on a directory #1192

Open mburger81 opened 7 years ago

mburger81 commented 7 years ago

Short description of the problem:

On running each command except ionic serve, so for example on running ionic cordova emulate android -lc I get now this error:

Error: EISDIR: illegal operation on a directory, unlink '/home/michi/software/workspace/web-client-ionic/www/assets/fonts/roboto'

I have this error after upgrading @ionic/app-scripts and ionic-cli. If I remove the folder there is now problem with the build process.

cli packages: (/usr/lib/node_modules)
    @ionic/cli-utils  : 1.9.2
    ionic (Ionic CLI) : 3.9.2

global packages:
    Cordova CLI : 7.0.1 

local packages:
    @ionic/app-scripts : 2.1.4
    Cordova Platforms  : android 6.2.3
    Ionic Framework    : ionic-angular 3.6.0

System:
    Android SDK Tools : 26.0.2
    Node              : v6.11.2
    npm               : 5.3.0 
    OS                : Linux 4.10
GaboNunez commented 7 years ago

I had the exact same problem as you. I assume you have your font files in /src/assets/fonts/roboto . What I did is take the roboto folder up two levels, directly in assets , make the corresponding modifications to the routes in the scss. I also deleted the www folder just in case. Don't worry about deleting it because the system creates the 'www' folder if missing. I compiled it again and it worked.

It's a tricky issue because I only got this error building for Android, the iOS building went smoothly even though the roboto folder were inside assets/fonts.

Hope this helps.

leandro070 commented 5 years ago

This is a solution. Roboto is unnecessary on Android. Solution