You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't have any local node_modules. I'm running everything through Docker.
As soon as I bootstrap the project with $ docker-compose up everything looks great.
If I try to change the Hello World! sentence in index.jsnodemon reloads the server as expected.
But as soon as I want to add a dependency like lodash while developing and while my container is up and running the package.json is not updated.
As explained in this repo (node-docker-good-defaults) I'm using $ docker-compose exec -w /opt/node_app node npm install --save lodash to install the new dependency and reflect the changes on my host project. Unfortunately it isn't working.
Any hints?
The text was updated successfully, but these errors were encountered:
I created the following example to highlight what I can't make it work:
I don't have any local
node_modules
. I'm running everything through Docker.As soon as I bootstrap the project with
$ docker-compose up
everything looks great.If I try to change the
Hello World!
sentence inindex.js
nodemon
reloads the server as expected.But as soon as I want to add a dependency like
lodash
while developing and while my container is up and running thepackage.json
is not updated.As explained in this repo (
node-docker-good-defaults
) I'm using$ docker-compose exec -w /opt/node_app node npm install --save lodash
to install the new dependency and reflect the changes on my host project. Unfortunately it isn't working.Any hints?
The text was updated successfully, but these errors were encountered: