Skip to content

Commit e3e2966

Browse files
authored
Actual Budget: allow native module install scripts under npm 11 (Node 24) (#16277)
1 parent 3921f03 commit e3e2966

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

ct/actualbudget.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ function update_script() {
3939
msg_ok "Stopped Service"
4040

4141
msg_info "Updating Actual Budget to ${RELEASE}"
42+
$STD npm config set allow-scripts=bcrypt,better-sqlite3,argon2 --location=global
4243
$STD npm update -g @actual-app/sync-server
44+
$STD npm rebuild -g
4345
echo "${RELEASE}" >~/.actualbudget
4446
msg_ok "Updated Actual Budget to ${RELEASE}"
4547

install/actualbudget-install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ cat <<EOF >/opt/actualbudget-data/config.json
5151
EOF
5252
mkdir -p /opt/actualbudget
5353
cd /opt/actualbudget
54+
$STD npm config set allow-scripts=bcrypt,better-sqlite3,argon2 --location=global
5455
$STD npm install --location=global @actual-app/sync-server
5556
echo "${RELEASE}" >~/.actualbudget
5657
msg_ok "Installed Actual Budget"

0 commit comments

Comments
 (0)