2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

42_npmjs: use sudo in non-interactive mode

git-svn-id: https://svn.fhem.de/fhem/trunk@18547 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2019-02-09 14:07:02 +00:00
parent dac0ba1652
commit de2fdf84f8

View File

@ -480,10 +480,10 @@ sub ExecuteNpmCommand($) {
}
else {
$npm->{npmupdate} =
$cmdPrefix . 'echo n | sudo npm update -g --unsafe-perm' . $cmdSuffix;
$cmdPrefix . 'echo n | sudo -n npm update -g --unsafe-perm' . $cmdSuffix;
$npm->{npmoutdated} =
$cmdPrefix
. 'echo n | node --version; sudo npm outdated -g --parseable'
. 'echo n | node --version; sudo -n npm outdated -g --parseable'
. $cmdSuffix;
}