Search code examples
cordovaterminalsudocordova-cli

Cordova and sudo in CLI


I was looking for a solution for one problem and installed a Cordova plugin with sudo - now I have to use sudo (and write my password) every time I want to build, emulate, or do anything with my project. Please help.


Solution

  • If anybody would encounter the same problem, I found a solution: I had to change permissions for the app folder with:

    $ sudo chmod -R a+rw /directory
    

    This command sets the permissions to read&write for everyone.