title: Docker build - version of npm is incompatible with lockfileVersion@1
body: <p>I'm trying to make a build a Docker image of a react application.</p>
  <p>Here is the first part of the package.json:</p>
  <pre><code>{
    &quot;name&quot;: &quot;front&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@testing-library/jest-dom&quot;: &quot;^5.14.1&quot;,
      &quot;@testing-library/react&quot;: &quot;^11.2.7&quot;,
      &quot;@testing-library/user-event&quot;: &quot;^12.8.3&quot;,
      &quot;eslint&quot;: &quot;^7.29.0&quot;,
      &quot;html-react-parser&quot;: &quot;^1.2.7&quot;,
      &quot;npm&quot;: &quot;^6.14.4&quot;,
      &quot;react&quot;: &quot;^17.0.2&quot;,
      &quot;react-dom&quot;: &quot;^17.0.2&quot;,
      &quot;react-input-mask&quot;: &quot;^3.0.0-alpha.2&quot;,
      &quot;react-redux&quot;: &quot;^7.2.4&quot;,
      &quot;react-router-dom&quot;: &quot;^5.2.0&quot;,
      &quot;react-scripts&quot;: &quot;^4.0.3&quot;,
      &quot;redux&quot;: &quot;^4.1.0&quot;,
      &quot;semantic-ui-css&quot;: &quot;^2.4.1&quot;,
      &quot;semantic-ui-react&quot;: &quot;^2.0.3&quot;,
      &quot;web-vitals&quot;: &quot;^1.1.2&quot;
    },
  </code></pre>
  <p>Here is the Dockerfile:</p>
  <pre><code># pull official base image
  FROM node:13.12.0-alpine
  
  # set working directory
  WORKDIR /app
  
  # add `/app/node_modules/.bin` to $PATH
  ENV PATH /app/node_modules/.bin:$PATH
  
  ARG REACT_APP_BASEURL='https://localhost:8081'
  ENV REACT_APP_BASEURL=$REACT_APP_BASEURL
  
  # install app dependencies
  COPY package.json ./
  COPY package-lock.json ./
  RUN npm install
  
  # add app
  COPY . ./
  
  #EXPOSE
  EXPOSE 3000
  
  # start app
  CMD [&quot;npm&quot;, &quot;start&quot;]
  </code></pre>
  <p>So, I build with the command line:</p>
  <pre><code>docker build -f Dockerfile -t api_front .
  </code></pre>
  <p>and I've this error message:</p>
  <blockquote>
  <p>npm WARN read-shrinkwrap This version of npm is compatible with
  lockfileVersion@1, but package-lock.json was generated for
  lockfileVersion@2. I'll try to do my best with it!</p>
  </blockquote>
  <p>If I check the version of npm with <code>npm -v</code> , I've the latest one (7.19.1)</p>
  <p>If I go to the project folder and I run <code>npm install</code> , everything is up-to-date</p>
  <p>If I start the application with <code>npm start</code> , everything is ok and the api is running...</p>
  <p>What is the problem?</p>
  <p><strong>Edit: SOLUTION</strong></p>
  <p>I've changed:</p>
  <pre><code>FROM node:13.12.0-alpine
  </code></pre>
  <p>to</p>
  <pre><code>FROM node:latest
  </code></pre>