mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +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:
parent
dac0ba1652
commit
de2fdf84f8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user