ownership of npm
This commit is contained in:
parent
b3f4ebe2ae
commit
1f6546d464
|
@ -402,6 +402,8 @@ function mesh_install_scuttlebot {
|
|||
|
||||
cat <<EOF > "$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
|
||||
|
|
Loading…
Reference in New Issue