File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -315,12 +315,15 @@ fetch_and_deploy_gh_release "Immich" "immich-app/immich" "tarball" "v3.0.1" "$SR
315315PNPM_VERSION=" $( jq -r ' .packageManager | split("@")[1] | split("+")[0]' ${SRC_DIR} /package.json) "
316316export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
317317NODE_VERSION=" 24" NODE_MODULE=" corepack" setup_nodejs
318+ # Provision the exact pnpm pinned in package.json's packageManager field via corepack instead
319+ # of `npm i -g pnpm@X`, which collides (EEXIST) with the corepack pnpm shim shipped by the
320+ # NodeSource nodejs package.
318321$STD corepack prepare " pnpm@${PNPM_VERSION} " --activate
319- export PNPM_HOME=" /root/.local/share/pnpm"
320- export PATH=" $PNPM_HOME :$PATH "
321- mkdir -p " $PNPM_HOME "
322+ # corepack activates pnpm but its global bin dir is not in PATH by default;
323+ # export it so that `pnpm config set --global` succeeds.
324+ export PATH=" /root/.local/share/pnpm/bin:$PATH "
325+ $STD pnpm config set --global dangerouslyAllowAllBuilds true
322326
323- $STD pnpm config set --global dangerouslyAllowAllBuilds true || true
324327msg_info " Installing Immich (patience)"
325328
326329cd " $SRC_DIR " /server
You can’t perform that action at this time.
0 commit comments