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:
loredo
2019-02-09 14:07:02 +00:00
parent c3c6534286
commit 458f3a4cb3

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;
}