Ionic Framework error: could not install "com.ionic.keyboard"

Just started testing the ionic infrastructure, and I ran into a little trouble when I wanted to add the Android platform. When I run the command:

ionic platform add android

I get the following

Done adding default Ionic resources
Adding icons for platform: android
running cordova platform add android
Adding android project...
Creating Cordova project for the Android platform:
    Path: platforms/android
    Package: com.ionicframework.tester166478
    Name: tester
    Activity: MainActivity
    Android target: android-22
Copying template files...
Android project created with cordova-android@4.0.0
Running command: "/media/denny/New Volume/projects/mobile/tester/hooks/after_prepare/010_add_platform_class.js" "/media/denny/New Volume/projects/mobile/tester"
Installing "com.ionic.keyboard" for android
Failed to install 'com.ionic.keyboard':Error: /media/denny/New Volume/projects/mobile/tester/platforms/android/cordova/version: Command failed with exit code EACCES
    at ChildProcess.whenDone (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
    at ChildProcess.emit (events.js:95:17)
    at Process.ChildProcess._handle.onexit (child_process.js:818:12)
Error: /media/denny/New Volume/projects/mobile/tester/platforms/android/cordova/version: Command failed with exit code EACCES
    at ChildProcess.whenDone (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
    at ChildProcess.emit (events.js:95:17)
    at Process.ChildProcess._handle.onexit (child_process.js:818:12)

What could be causing the error above?

+4
source share
1 answer

Based on an error message, adding a platform is not performed due to a lack of permissions

Command failed with exit code EACCES

when trying to create a folder /media/denny/New Volume/projects/mobile/tester/platforms/android/cordova/version.

If you are using a Mac, you should see this answer by holmescn.

If you are using Linux, try running

chmod -r 777 *

in your root projects to get enough permissions.

+3

Source: https://habr.com/ru/post/1584455/


All Articles