-
Notifications
You must be signed in to change notification settings - Fork 53
Description
I feel like I should know this but I cannot, despite trying everything I can think of, update the JS dependencies in my existing usage of this Docker environment.
I only have a basic understanding of Docker and I understand that the step Copying node_modules, this may take a few minutes...
is copying from somewhere, this copy is obviously cached and contains an outdated version of node_modules
.
Please can someone help me know how to update this, last time (earlier this year) I had to completely delete the entire folder and rebuild all Docker content (clone the repo) from scratch.
This time, I have been trying on an off for a week to get this working more simply and I cannot work it out.
How do others update the node_modules
that is cached? I am happy to add this to the Readme if someone can point out how they do this.
Things I have tried
- Outside of the Docker container, update the node_modules and run build etc (this helps for running tests and testing a build but this is not what the Docker actually runs with)
ssh-fe
andnpm install
- does not change anything after restarting the Docker containersssh-fe
andnpm ci
- just crashes/closes the Docker container, never finishesssh-fe
andrm -rf ./node_modules
- just crashes/closes the Docker container and it won't start at all again- Delete and rebuild the frontend container from scratch, works the first time, after restarting it reverts to some previous cache somehow