Archive for June, 2016

Ionic\Cordova EACCESS Error

ionic-logo-blogWhen your running the command “ionic run ios or ionic emulate ios” on a Mac you may be presented with the following error:

Error: spawn EACCES

The most common cause of this error is that the scripts in your hooks directory don’t have execute permission. You may also try removing and adding your ios provider. If that doesn’t work the other fix is to run the following command:

sudo find /path/to/your/app/hooks -type f -exec chmod +x {} \;

This will iterate over every file in your hooks directory and grant execute permission. Try running the run/emulate command again and the problem should be gone.

If you’re a First Responder or know one check out Resgrid which is a SaaS product utilizing Microsoft Azure, providing logistics, management and communication tools to first responder organizations like volunteer fire departments, career fire departments, EMS, search and rescue, CERT, public safety, disaster relief organizations.

VSCode and Ionic/Cordova Platform File Locking

If your running into file locking, like in the platform/android/assets/www folder, trying to use the Ionic or Cordova CLI tools with VSCode you need to exclude those folders from your VSCode’s explorer. The benefit here is also they will disappear from your search results from VSCode as well.

The error you might be receiving might look like:

rm: could not remove directory (code ENOTEMPTY): pathto\platforms\android\assets\www/js/libs

In Windows select File->Preferences->Workspace Settings.

2016-06-24 21_02_16-settings.json - Responder - Visual Studio Code

A split screen editor will appear, edit the right hand window, it may be almost blank and include the files.exclude object from below.

// Place your settings in this file to overwrite default and user settings.
“files.exclude”: {
“**/.git”: true,
“**/.DS_Store”: true,
“**/node_modules”: true,
“node_modules”: true,
“platforms”: true,
“plugins”: true


Once you save the settings.json file they should disappear from your VSCode explorer, but you may need to restart VSCode to make sure.

Go to Top