Skip to content

Commit

Permalink
install npm if missing
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Storm <markus.storm@gmx.net>
  • Loading branch information
mstormi committed Feb 10, 2024
1 parent a5743fb commit 12f85cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/nodejs-apps.bash
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ nodejs_setup() {
if cond_redirect apt-get install --yes -o DPkg::Lock::Timeout="$APTTIMEOUT" nodejs; then echo "OK"; else echo "FAILED"; return 1; fi
fi
#if [[ "$myDistro" == "bookworm" ]]; then jsscripting_npm_install; fi
if ! npm -v; then jsscripting_npm_install; fi
if ! command -v npm; &> /dev/null; then jsscripting_npm_install; fi
fi
}

Expand Down

0 comments on commit 12f85cb

Please sign in to comment.