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