Npm installation error in docker’s volume

  docker, question

I am heredocker-composeVolume in mounts the local directory to docker
Then run in docker’s directorynpm install
A mistake was reported.

EBUSY: resource busy or locked, rmdir '/data/analytics/node_modules/@plugins/View'

I don’t know how to solve it.

This is a question of execution order. Volume in compose is executed after the mirror is built.