I am trying to push a nodejs app in cloud foundry and js in turn calls the shell script, which includes some installation commands. During the shell script execution i am getting the following error:
2016-07-13T12:13:28.80+0000 [App/0] OUT stderrsudo: no tty present and no askpass program specified
2016-07-13T12:13:28.80+0000 [App/0] OUT E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
2016-07-13T12:13:28.80+0000 [App/0] OUT E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?