Skip to content

Commit 054a963

Browse files
authored
Update homepage.sh to use setup_nodejs (#6462)
1 parent b366ffa commit 054a963

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

ct/homepage.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,9 @@ function update_script() {
2727
msg_error "No ${APP} Installation Found!"
2828
exit
2929
fi
30-
if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then
31-
if ! command -v npm >/dev/null 2>&1; then
32-
echo "Installing NPM..."
33-
$STD apt-get install -y npm
34-
$STD npm install -g pnpm
35-
echo "Installed NPM..."
36-
fi
37-
fi
30+
31+
NODE_VERSION="22" NODE_MODULE="pnpm@latest" setup_nodejs
32+
3833
# ensure that jq is installed
3934
if ! command -v jq &>/dev/null; then
4035
$STD msg_info "Installing jq..."

0 commit comments

Comments
 (0)