dko
dko
RRailway
Created by dko on 11/21/2023 in #✋|help
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
20 replies