瀏覽代碼

Remove cacache

Bob Mottram 7 年之前
父節點
當前提交
0a8147e8c3
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      src/freedombone-app-scuttlebot

+ 3
- 0
src/freedombone-app-scuttlebot 查看文件

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