From 3ef0173226feec4283ab5e5c14d05cc54fe5da76 Mon Sep 17 00:00:00 2001 From: Mark Cooper Date: Fri, 24 Sep 2021 17:38:35 -0500 Subject: [PATCH] build script permissions workaround --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index bf9fa9e7..50a7de1e 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "client": "cd client && npm install && npm run generate-client", "generate-client": "cd client && npm run generate", "prod": "npm run client && npm install && node prod.js", - "build-client": "cd client && rm -rf node_modules && npm i && npm run generate", - "build-server": "rm -rf node_modules && npm i && npm i ffmpeg-static", + "build-client": "cd client && rm -rf node_modules && npm i --unsafe-perm=true --allow-root && npm run generate", + "build-server": "rm -rf node_modules && npm i --unsafe-perm=true --allow-root && npm i ffmpeg-static --unsafe-perm=true --allow-root", "build-prep": "npm run build-client && npm run build-server", "build-win": "npm run build-prep && pkg -t node12-win-x64 -o ./dist/win/audiobookshelf .", "build-linuxarm": "npm run build-prep && pkg -t node12-linux-arm64 -o ./dist/linuxarm/audiobookshelf .",