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 .",