Postinstall fails for nuxt layer playgrounds

So when i try to install a pnpm workspace it fails during postinstall: there's an error: <layer>/node_modules/.bin/nuxt: /bin/sh: bad interpreter: Text file busy Full log:
jcsan@nixos:~/code/clinic-workspace/ > pn install
Scope: all 4 workspace projects
Lockfile is up to date, resolution step is skipped
Already up to date
peri postinstall$ pnpm prep
> [email protected] prep /home/jcsan/code/clinic-workspace/peri
> nuxt prepare .playground
sh: /home/jcsan/code/clinic-workspace/peri/node_modules/.bin/nuxt: /bin/sh: bad interpreter: Text file busy
 ELIFECYCLE  Command failed with exit code 126.
└─ Failed in 670ms at /home/jcsan/code/clinic-workspace/peri
records postinstall$ pnpm prep
> [email protected] prep /home/jcsan/code/clinic-workspace/records
> nuxt prepare .playground
sh: /home/jcsan/code/clinic-workspace/records/node_modules/.bin/nuxt: /bin/sh: bad interpreter: Text file busy
 ELIFECYCLE  Command failed with exit code 126.
└─ Running...
 ELIFECYCLE  Command failed with exit code 126.
jcsan@nixos:~/code/clinic-workspace/ > pn install
Scope: all 4 workspace projects
Lockfile is up to date, resolution step is skipped
Already up to date
peri postinstall$ pnpm prep
> [email protected] prep /home/jcsan/code/clinic-workspace/peri
> nuxt prepare .playground
sh: /home/jcsan/code/clinic-workspace/peri/node_modules/.bin/nuxt: /bin/sh: bad interpreter: Text file busy
 ELIFECYCLE  Command failed with exit code 126.
└─ Failed in 670ms at /home/jcsan/code/clinic-workspace/peri
records postinstall$ pnpm prep
> [email protected] prep /home/jcsan/code/clinic-workspace/records
> nuxt prepare .playground
sh: /home/jcsan/code/clinic-workspace/records/node_modules/.bin/nuxt: /bin/sh: bad interpreter: Text file busy
 ELIFECYCLE  Command failed with exit code 126.
└─ Running...
 ELIFECYCLE  Command failed with exit code 126.
What I tried 1. Running only postinstall/prepare works in the individual layers though. 2. Restarting 3. Clean install of node_modules and running nuxt cleanup 4. Also, I recently switched to zsh so that might be the cause, so some searching led me to adding: source $home/.bashrc to my .zshrc 5. My workaround for now is to remove the postinstall from each package.json then running prepare manually for each layer. has anyone experienced this before? Thanks in advance!
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server