ssh-action icon indicating copy to clipboard operation
ssh-action copied to clipboard

Shell Script being executed as sudo inside of action (may be my fault though)

Open Kevin-M-Zaleo opened this issue 3 years ago • 0 comments

Hey there

My situation: I am using this action to connect to my server, load a new version of my project and reinstall dependencies (development server, so i need to change installed packages frequently)

Problem: I tried installing a major update of some packages. The install breaks and says "sharp: Installation error: Expected Node.js version >=12.13.0 but found 10.19.0" So I checked my node version, it's 16.13, using nvm and 16.13 being the only version installed. Doing the install manually yields no problems at all. I tried to figure out, why the install fails inside the action and randomly tried to sudo install. This produced the same error. After this i checked "sudo node" which returned 10.19.0

The question now is: did I misconfigure something or are shell commands inside the action executed as sudo?

TIA

Kevin-M-Zaleo avatar Aug 11 '22 08:08 Kevin-M-Zaleo