Skip to content

Help with how to upgrade JS (Node) dependencies #64

@lb-

Description

@lb-

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 and npm install - does not change anything after restarting the Docker containers
  • ssh-fe and npm ci - just crashes/closes the Docker container, never finishes
  • ssh-fe and rm -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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions