DEV Community

Discussion on: Using Docker for Node.js in Development and Production

Collapse
 
vschoener profile image
Vincent Schoener

Thanks for the article. On my own, I'm already using Docker that way but I still didn't figure out the best way to have the node_modules folder available on the host and having my IDE working with for the autocomplete and more. (For TypeScript, for example, it's better to get the type from packages)

So I found a way during the install process, I have to install on my own the package locally but both node_modules could be different if my node version is different from my machine and the container, so it's already an issue here... And I know it's not how Docker is designed for but in this case, it could really be nice to have the files available.

Any idea? :)

Collapse
 
lewislbr profile image
Lewis Llobera

The only way I've found to solve that => stackoverflow.com/questions/510976...