Home directory [/home/asterisk/.npm] is not writable after Zulu/Phone Apps/UCP Node server upgrade

Upgrading the following modules. Failed to run installation scripts, Home directory [/home/asterisk/.npm] is not writable

Phone Apps 13.0.86.10 will be upgraded to online version 13.0.86.16
UCP Node Server 13.0.32.10 will be upgraded to online version 13.0.33.7
Zulu 13.0.49.9 will be upgraded to online version 13.0.50.13

Those modules are now disabled.

Installing/Updating Required Libraries. This may take a while…The command “runuser -l asterisk -c 'cd /var/www/html/admin/modules/zulu/node && mkdir -p /var/lib/asterisk/zulu && ls -laR /var/www/html/admin/modules/zulu/node && mkdir -p /var/www/html/admin/modules/zulu/node/logs && export HOME=”/home/asterisk" && echo “prefix = ~/.node” > ~/.npmrc && export FOREVER_ROOT="/var/lib/asterisk/zulu" && export ASTLOGDIR="/var/log/asterisk" && export PATH="$HOME/.node/bin:$PATH" && export NODE_PATH="$HOME/.node/lib/node_modules:$NODE_PATH" && export MANPATH="$HOME/.node/share/man:$MANPATH" && npm-cache -v’" failed.
Exit Code: 127(Command not found)

New 10.13.66 install

fwconsole chown

1 Like