From 6ec336da062d1a3c8620a5c79a34eb8f00ff4d4d Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Fri, 13 Oct 2017 23:06:27 +0100
Subject: [PATCH] Attempt npm install fix

---
 src/freedombone-utils-nodejs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/freedombone-utils-nodejs b/src/freedombone-utils-nodejs
index 8599b9370..c6648fc6a 100755
--- a/src/freedombone-utils-nodejs
+++ b/src/freedombone-utils-nodejs
@@ -137,6 +137,8 @@ function mesh_install_nodejs {
     #cp $rootdir/usr/bin/npm $rootdir/root/npm
 
     get_npm_arch
+
+    $mesh_install_nodejs_prefix npm config set unsafe-perm true
     $mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g npm@${NPM_VERSION} --save
     if [ -f $rootdir/usr/local/bin/npm ]; then
         cp $rootdir/usr/local/bin/npm /usr/bin/npm
-- 
GitLab