unfold / heroku-buildpack-pnpm

Run PNPM install on Heroku
MIT License
38 stars 39 forks source link

ERR_PNPM_PREPARE_PKG_FAILURE #19

Open mcorbelli opened 2 years ago

mcorbelli commented 2 years ago

I installed the buildpack on heroku, activated via corepack pnpm and then did a deployment test. The error message I get is the classic ERR_PNPM_PREPARE_PKG_FAILURE.

Packages are hard linked from the content-addressable store to the virtual store. Content-addressable store is at: /app/.local/share/pnpm/store/v3 Virtual store is at: node_modules/.pnpm  ERR_PNPM_PREPARE_PKG_FAILURE  Command failed with exit code 1: pnpm install Progress: resolved 275, reused 273, downloaded 0, added 0

Steps to reproduce the behavior:

  1. Set up your buildpack from the heroku dashboard and removed the default buildpack
  2. Activated pnpm via corepack (corepack enable => corepack prepare pnpm@ --activate)
  3. Deploy nodejs server (also installing dependencies by hand via install command)

    • Heroku Stack: heroku-22
    • Node Version: 18.7.0
    • NPM or Yarn Version: Yarn 1.22.19, Npm: 8.15.0]
    • Buildpack Version: heroku-buildpack-pnpm