I had a similar problem. It happened after an update (of several modules) using the module admin failed.
fwconsole ma remove ucp --force
rm -rf /home/asterisk/.package_cache/npm/
rm -rf /home/asterisk/.npm
fwconsole ma downloadinstall ucp
I adapted the code mbrooks posted here: