R
Railway13mo 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 [email protected]` 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 [email protected]` 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
Percy13mo ago
Project ID: 0c9d3497-0d74-4624-bee2-8449ab0fab7f
dko
dkoOP13mo ago
0c9d3497-0d74-4624-bee2-8449ab0fab7f
Brody
Brody13mo ago
what kind of app is this?
dko
dkoOP13mo ago
node.js
Brody
Brody13mo ago
i can tell that but more specifically?
dko
dkoOP13mo ago
express server, written in typescript
Brody
Brody13mo ago
try setting a service variable NIXPACKS_NO_CACHE to 1
dko
dkoOP13mo ago
okay trying now looks like its working yep. the build succeeded Thanks. is that a common issue? am I doing something wrong?
Brody
Brody13mo ago
first ive seen, you arent doing anything wrong
dko
dkoOP13mo ago
hmm okay thanks! have a good one
Brody
Brody13mo ago
you too!
Want results from more Discord servers?
Add your server