mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-25 08:44:56 +02:00
tools.func: centralize Node.js corepack and npm handling in setup_nodejs() (#15268)
This commit is contained in:
committed by
GitHub
parent
c98d2da1bd
commit
b5c31d58f4
@@ -19,14 +19,14 @@ $STD apt install -y \
|
||||
gettext-base
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
|
||||
|
||||
fetch_and_deploy_gh_release "feishin" "jeffvli/feishin" "tarball"
|
||||
|
||||
msg_info "Building Feishin Web"
|
||||
cd /opt/feishin
|
||||
#PNPM_VERSION=$(jq -r '.packageManager | ltrimstr("pnpm@")' /opt/feishin/package.json)
|
||||
$STD corepack enable
|
||||
|
||||
$STD corepack prepare "pnpm@10" --activate
|
||||
$STD pnpm install
|
||||
$STD pnpm run build:web
|
||||
|
||||
Reference in New Issue
Block a user