Cannot finde module 'express' (node app with docker)
<p>I'm a newbie with Docker and I'm trying to start with NodeJS so here is my question..</p>

<p>I have this Dockerfile inside my project:</p>

<pre><code>FROM node:argon

# Create app directory
RUN mkdir -p /home/Documents/node-app
WORKDIR /home/Documents/node-app

# Install app dependencies
COPY package.json /home/Documents/node-app
RUN npm install

# Bundle app source
COPY . /home/Documents/node-app

EXPOSE 8080
CMD ["npm", "start"]
</code></pre>

<p>When I run a container with <code>docker run -d -p 49160:8080 node-container</code> it works fine..</p>

<p>But when I try to map my host project with the container directory (<code>docker run -p 49160:8080 -v ~/Documentos/nodeApp:/home/Documents/node-app node-cont</code>) it doesn't work.</p>

<p>The error I get is: <code>Error: Cannot find module 'express'</code></p>

<p>I've tried with other solutions from related questions but nothing seems to work for me (or I know.. I'm just too rookie with this)</p>

<p>Thank you !!</p>