Skip to content

Keep node_modules generated by the npm inside the image#94

Open
illia-bobyr wants to merge 1 commit into
knazir:masterfrom
illia-bobyr:pr/backend-image-keep-node_modules
Open

Keep node_modules generated by the npm inside the image#94
illia-bobyr wants to merge 1 commit into
knazir:masterfrom
illia-bobyr:pr/backend-image-keep-node_modules

Conversation

@illia-bobyr
Copy link
Copy Markdown

./backend:/app volume mapping for the backend image will shadow the node_modules folder that is populated by the npm install executed when the backend image is prepared.

This creates a rather confusing behavior, when the image setup log shows that the packages are installed, and yet, the next step of running nodemon or ts-node fails.

I guess if node_modules is populated in the original tree, this issue is obscured. But it seems broken, and will break anyone trying to run ./localdev.sh up after a git clone.

`./backend:/app` volume mapping for the `backend` image will shadow the
`node_modules` folder that is populated by the `npm install` executed
when the `backend` image is prepared.

This creates a rather confusing behavior, when the image setup log
shows that the packages are installed, and yet, the next step of running
`nodemon` or `ts-node` fails.

I guess if `node_modules` is populated in the original tree, this issue
is obscured.  But it seems broken, and will break anyone trying to run
`./localdev.sh up` after a `git clone`.
@illia-bobyr illia-bobyr requested a review from knazir as a code owner May 27, 2026 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant