Remove cacache

This commit is contained in:
Bob Mottram 2018-04-12 20:41:03 +01:00
parent 96e5e1f85d
commit 0a8147e8c3
1 changed files with 3 additions and 0 deletions

View File

@ -402,6 +402,9 @@ function mesh_install_scuttlebot {
cat <<EOF > "$rootdir/usr/bin/install_scuttlebot" cat <<EOF > "$rootdir/usr/bin/install_scuttlebot"
#!/bin/bash #!/bin/bash
if [ -d ~/.npm/_cacache ]; then
rm -rf ~/.npm/_cacache
fi
if ! npm install --arch=$NPM_ARCH -g scuttlebot@${SCUTTLEBOT_VERSION}; then if ! npm install --arch=$NPM_ARCH -g scuttlebot@${SCUTTLEBOT_VERSION}; then
exit 1 exit 1
fi fi