Linux: add android platform to cordova

When I add the android platform to my project by writing out the command:

cordova platform add android

      

I am getting the following error:

Unable to fetch platform android: Error: EACCES, mkdir '/home/mo3tssem/tmp/npm-13061-R9BWhlB2'

      

+3


source to share


2 answers


Ok, so your / home / ubuntu / tmp has the wrong permissions. This is because you have had sudo npm install in the past and npm does not handle it well enough.



Run sudo chown ubuntu / home / ubuntu / tmp -Rv to fix this issue or just delete this folder.

+3


source


do this first:



ln -s /tmp $HOME/tmp

      

-1


source







All Articles