I’m getting the following error on a brand new app created with the ionic2-starter-sidemenu. As a workaround, I’ve been manually copying the ionicon files to the www/assets and that works but I want to find a permanent solution.
Any ideas?
[07:05:04] Error copying "src/assets/" to "www/assets/": Error: EPERM: operation not permitted, open
C:\ionic\moneyleash\www\assets\fonts\ionicons.eot',Error: EPERM: operation not permitted, open
C:\ionic\moneyleash\www\assets\fonts\ionicons.svg',Error: EPERM: operation not permitted, open
C:\ionic\moneyleash\www\assets\fonts\ionicons.ttf',Error: EPERM: operation not permitted, open
C:\ionic\moneyleash\www\assets\fonts\ionicons.woff',Error: EPERM: operation not permitted, open
C:\ionic\moneyleash\www\assets\fonts\ionicons.woff2
+1 this issue. Same exact info except running node v6.3.1. Tried a lot of different things to no effect. Also after running serve it hangs at sass finished…
EDIT
Literally right after posting this ionic served as normal. Found that running ionic serve right after running ionic info worked for some reason. A proper fix is of course still needed but for now you could try this
Not sure if this fixed the issue (at least temporarily). But after doing this and restarting my machine ionic serve worked fine (apart from some Javascript heap out of memory errors…
Randomly after running ionic serve again it reverted to the same permissions problem though…
After updating to RC0 and taking the latest of ionic conference app. I am also getting this error:
Error copying “src/assets/” to “www/assets/”. Interestingly, even if I delete build and assets folder from www, the error still shows. Already tried restarting the machine, installing node modules again and again.
Happens to me randomly as well. I am on Windows 10. Sometimes fonts get copied, sometimes they don’t. No pattern as to when the problem occurs. Experiencing the issue with both ionic serve and ionic build android.
@codestellar I followed your steps from #66245 to no avail
From command window:
[10:40:01] copy failed: Error copying "src/assets/" to "www/assets/": Error: EPERM: operation not permitted, open 'C:\ionic\MoneyLeash2\www\assets\fonts\ionicons.svg',Error: EPERM: operation not permitted, open 'C:\ionic\MoneyLeash2\www\assets\fonts\ionicons.eot',Error: EPERM: operation not permitted, open 'C:\ionic\MoneyLeash2\www\assets\fonts\ionicons.woff',Error: EPERM: operation not permitted, open 'C:\ionic\MoneyLeash2\www\assets\fonts\ionicons.ttf',Error: EPERM: operation not permitted, open 'C:\ionic\MoneyLeash2\www\assets\fonts\ionicons.woff2'
[10:40:01] Error: Error copying "src/assets/" to "www/assets/": Error: EPERM: operation not permitted, open 'C:\ionic\MoneyLeash2\www\assets\fonts\ionicons.svg',Error: EPERM: operation not permitted, open 'C:\ionic\MoneyLeash2\www\assets\fonts\ionicons.eot',Error: EPERM: operation not permitted, open 'C:\ionic\MoneyLeash2\www\assets\fonts\ionicons.woff',Error: EPERM: operation not permitted, open 'C:\ionic\MoneyLeash2\www\assets\fonts\ionicons.ttf',Error: EPERM: operation not permitted, open 'C:\ionic\MoneyLeash2\www\assets\fonts\ionicons.woff2'
at C:\ionic\MoneyLeash2\node_modules\@ionic\app-scripts\dist\copy.js:41:28
at doneOne (C:\ionic\MoneyLeash2\node_modules\fs-extra\lib\copy\ncp.js:237:23)
at C:\ionic\MoneyLeash2\node_modules\fs-extra\lib\copy\ncp.js:122:11
at C:\ionic\MoneyLeash2\node_modules\graceful-fs\polyfills.js:219:18
at FSReqWrap.oncomplete (fs.js:123:15)
(node:7288) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 5): Error: Error copying "src/assets/" to "www/assets/": Error: EPERM: operation not permitted, open 'C:\ionic\MoneyLeash2\www\assets\fonts\ionicons.svg',Error: EPERM: operation not permitted, open 'C:\ionic\MoneyLeash2\www\assets\fonts\ionicons.eot',Error: EPERM: operation not permitted, open 'C:\ionic\MoneyLeash2\www\assets\fonts\ionicons.woff',Error: EPERM: operation not permitted, open 'C:\ionic\MoneyLeash2\www\assets\fonts\ionicons.ttf',Error: EPERM: operation not permitted, open 'C:\ionic\MoneyLeash2\www\assets\fonts\ionicons.woff2'
@codestellar thanks for the offer to connect on skype but I think I found a pattern and a fix to my problem.
If I modify an existing beta.11 project to RC0 I get the same error “copying assets…”. However, if I copy my project to a NEW project , everything works. This is working for me now.
Thanks to everyone for all your tips and suggestions!