Sorairo Setsuna#0989
Sorairo Setsuna#0989
NNuxt
Created by Sorairo Setsuna#0989 on 5/19/2024 in #❓・help
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
> peri@0.0.1 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
> dental-records-layer@0.0.1 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
> peri@0.0.1 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
> dental-records-layer@0.0.1 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!
1 replies
NNuxt
Created by Sorairo Setsuna#0989 on 4/6/2024 in #❓・help
How to Require tailwind plugins in a Nuxt Module
No description
11 replies
NNuxt
Created by Sorairo Setsuna#0989 on 3/16/2024 in #❓・help
How to use addComponentsDir on a pnpm workspace package in vite lib mode?
No description
1 replies