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 1740e79 commit a5743fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/nodejs-apps.bash
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ nodejs_setup() {
else
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
fi
}

Expand Down

0 comments on commit a5743fb

Please sign in to comment.