R
Railway7mo ago
dko

Build failing - npm run build - EBUSY error

Trying to run a build and getting this error.
ERR! code EBUSY

#12 2.798 npm ERR! syscall rmdir

#12 2.799 npm ERR! path /app/node_modules/.cache

#12 2.800 npm ERR! errno -16

#12 2.801 npm ERR! EBUSY: resource busy or locked, rmdir '/app/node_modules/.cache'

#12 2.803

#12 2.804 npm ERR! A complete log of this run can be found in:

#12 2.804 npm ERR! /root/.npm/_logs/2023-11-21T02_27_51_538Z-debug-0.log

#12 2.844 npm notice

#12 2.844 npm notice New major version of npm available! 8.19.4 -> 10.2.4

#12 2.845 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.4>;

#12 2.845 npm notice Run `npm install -g npm@10.2.4` to update!

#12 2.845 npm notice

#12 ERROR: process "/bin/bash -ol pipefail -c CI=false npm run build" did not complete successfully: exit code: 240
ERR! code EBUSY

#12 2.798 npm ERR! syscall rmdir

#12 2.799 npm ERR! path /app/node_modules/.cache

#12 2.800 npm ERR! errno -16

#12 2.801 npm ERR! EBUSY: resource busy or locked, rmdir '/app/node_modules/.cache'

#12 2.803

#12 2.804 npm ERR! A complete log of this run can be found in:

#12 2.804 npm ERR! /root/.npm/_logs/2023-11-21T02_27_51_538Z-debug-0.log

#12 2.844 npm notice

#12 2.844 npm notice New major version of npm available! 8.19.4 -> 10.2.4

#12 2.845 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.4>;

#12 2.845 npm notice Run `npm install -g npm@10.2.4` to update!

#12 2.845 npm notice

#12 ERROR: process "/bin/bash -ol pipefail -c CI=false npm run build" did not complete successfully: exit code: 240
I've tried changing the build command to CI=false npm run build - but still get the same thing
13 Replies
Percy
Percy7mo ago
Project ID: 0c9d3497-0d74-4624-bee2-8449ab0fab7f
dko
dko7mo ago
0c9d3497-0d74-4624-bee2-8449ab0fab7f
Brody
Brody7mo ago
what kind of app is this?
dko
dko7mo ago
node.js
Brody
Brody7mo ago
i can tell that but more specifically?
dko
dko7mo ago
express server, written in typescript
Brody
Brody7mo ago
try setting a service variable NIXPACKS_NO_CACHE to 1
dko
dko7mo ago
okay trying now looks like its working yep. the build succeeded Thanks. is that a common issue? am I doing something wrong?
Brody
Brody7mo ago
first ive seen, you arent doing anything wrong
dko
dko7mo ago
hmm okay thanks! have a good one
Brody
Brody7mo ago
you too!