Docker(nodejs) doesn't recognise custom node module installations

Reapplying setting will copy the package.json correctly to the container as you can see:

image

But still nanoid is not recognised although it was copied too and appears in package.json inside the container.

image

  server-connect:server Got error? Error: Module nanoid doesn't exist

  server-connect:server     at App._exec (/opt/node_app/lib/core/app.js:253:27)

  server-connect:server     at App.exec (/opt/node_app/lib/core/app.js:205:20)

  server-connect:server     at App.define (/opt/node_app/lib/core/app.js:188:20)

  server-connect:server     at /opt/node_app/lib/core/middleware.js:13:40

  server-connect:server     at Layer.handle [as handle_request] (/opt/node_app/node_modules/express/lib/router/layer.js:95:5)

  server-connect:server     at next (/opt/node_app/node_modules/express/lib/router/route.js:137:13)

  server-connect:server     at next (/opt/node_app/node_modules/express/lib/router/route.js:131:14)

  server-connect:server     at next (/opt/node_app/node_modules/express/lib/router/route.js:131:14)

  server-connect:server     at next (/opt/node_app/node_modules/express/lib/router/route.js:131:14)