cordova - Phonegap error in adding android platform in ubuntu -
while try add android platform in phonegap project error
failed install 'cordova-plugin-whitelist':error: <project_path>/platforms/android/cordova/version: command failed exit code eacces @ childprocess.whendone (/usr/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23) @ childprocess.emit (events.js:95:17) @ process.childprocess._handle.onexit (child_process.js:818:12)
and try of link solutions give permission build , remove android platform , add again every time same error
what potential solution ?
as per documentation there no need run cordova platform add android
root
. check example:
$ cordova create hello com.example.hello helloworld $ cd hello $ cordova platform add android $ cordova build
if still face issue check executable scripts or programs allowed executed.
in case i'd guess cordova
tries run
<project_path>/platforms/android/cordova/version
what not allowed executed. call
sudo chmod ugo+x <project_path>/platforms/android/cordova/version
to make version
executable.
p.s.: updated answer above. days ago tested another post happens, if added platform root
. though issue there saw not required run cordova platform add android
root
.
i think it's basic installation of cordova requires root
. else should set , executed normal user.
Comments
Post a Comment