From 1f6546d464a25c4b103827e22049880bb35be779 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 12 Apr 2018 21:27:29 +0100 Subject: [PATCH] ownership of npm --- src/freedombone-app-scuttlebot | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedombone-app-scuttlebot b/src/freedombone-app-scuttlebot index 4ee36d5c..d17d1ebc 100755 --- a/src/freedombone-app-scuttlebot +++ b/src/freedombone-app-scuttlebot @@ -402,6 +402,8 @@ function mesh_install_scuttlebot { cat < "$rootdir/usr/bin/install_scuttlebot" #!/bin/bash +chown -R $(whoami):$(whoami) $(npm config get prefix)/{lib/node_modules,bin,share} +chown -R $(whoami):$(whoami) ~/.npm if ! npm install --arch=$NPM_ARCH -g scuttlebot@${SCUTTLEBOT_VERSION}; then exit 2 fi