Skip to content

EBUSY: resource busy error during automated update npm installΒ #367

@kamranayub

Description

@kamranayub

When getting an update notification, I consistently get the following error and have to manually run npm install. Originally, I thought it was with the playground server running but as you can see, this was a fresh start.

One thing I noticed as far as order of logs, is that the server gets started and then I receive the npm error. So not sure if there's a missing await or something like that before npm install is actually finished before starting the server.

❯ npm start

> start
> npx --prefix ./epicshop epicshop start

🐨 Welcome to the workshop, subka!
Supported keys:
  o - open workshop app
  u - update workshop
  r - restart workshop app
  k - Kody kudos 🐨
  q - exit (or Ctrl+C)


 πŸŽ‰  There are updates available for this workshop repository.  πŸŽ‰

To get the updates, press the "u" key

To view a diff, check:
   https://github.com/epicweb-dev/mcp-fundamentals/compare/0a47348...ab402bf 

To dismiss this notification, press the "d" key


πŸ”„ Update requested from terminal. Running update and restarting app process...

πŸ‘€ Checking for updates...
πŸ‘œ Stashing uncommitted changes...
⬇️ Pulling latest changes...
πŸ‘œ re-applying stashed changes...
πŸ“¦ Re-installing dependencies...

> postinstall
> cd ./epicshop && npm install

🐨  Let's get learning!
Local:            http://localhost:5639
On Your Network:  http://172.23.96.1:5639

npm error code EBUSY
npm error syscall rename
npm error path E:\Development\Contrib\mcp-fundamentals\epicshop\node_modules\@epic-web\workshop-app
npm error dest E:\Development\Contrib\mcp-fundamentals\epicshop\node_modules\@epic-web\.workshop-app-dd77a4NT
npm error errno -4082
npm error EBUSY: resource busy or locked, rename 'E:\Development\Contrib\mcp-fundamentals\epicshop\node_modules\@epic-web\workshop-app' -> 'E:\Development\Contrib\mcp-fundamentals\epicshop\node_modules\@epic-web\.workshop-app-dd77a4NT'

Environment

  • Windows 11, 64-bit
  • VS Code terminal
  • Node 24.0.1
  • npm 11.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions