UCP Node Server update fails to build

FreePBX Version: 10.13.66-6

While trying to update/install UCP Node Server (currently at 13.0.9) to 13.0.12 get a message it fails.

[email protected] node_modules/mariasql
âââ [email protected]
npm ERR! Error: EACCES, mkdir '/home/asterisk/.npm/node-expat/2.3.11’
npm ERR! { [Error: EACCES, mkdir ‘/home/asterisk/.npm/node-expat/2.3.11’]
npm ERR! errno: 3,
npm ERR! code: ‘EACCES’,
npm ERR! path: ‘/home/asterisk/.npm/node-expat/2.3.11’,
npm ERR! parent: ‘ltx’ }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 2.6.32-504.8.1.el6.x86_64
npm ERR! command “/usr/bin/node” “/usr/bin/npm” "update"
npm ERR! cwd /var/www/html/admin/modules/ucpnode/node
npm ERR! node -v v0.10.40
npm ERR! npm -v 1.4.28
npm ERR! path /home/asterisk/.npm/node-expat/2.3.11
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/home/asterisk/.npm/node-expat/2.3.11’
npm ERR! not ok code 0

Pretty much the same problem. Trying to upgrade endpoint manager which requires this module be upgraded first. However every time I try and upgrade UCP node manager fails.


Run these commands:

yum remove npm
yum install nodejs
fwconsole ma uninstall ucpnode
fwconsole ma remove ucpnode
fwconsole ma download ucpnode
fwconsole ma install ucpnode

Thank you,

Daniel Friedman
Trixton LTD.