mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-07-12 00:52:14 +02:00
refactor(install): use setup_nodejs corepack via NODE_MODULE
Remove redundant corepack enable calls from install scripts and rely on centralized setup_nodejs handling. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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