title: Gitlab ci doesn't install all dependencies (angular app)
body: <p>I'm trying to build and deploy angular application using gitlab-ci
  here is my config</p>
  <pre><code>stages:
    - build
  
  build:
    stage: build
    image: node:12.21.0
    only:
      - master
    script:
      - npm install -g @angular/cli@11.2.6
      - npm install
      - npm run build:i18n
  </code></pre>
  <p>and here are my dependencies from <code>package.json</code></p>
  <pre><code>&quot;dependencies&quot;: {
    &quot;@agm/core&quot;: &quot;^1.1.0&quot;,
    &quot;@angular/animations&quot;: &quot;~11.2.5&quot;,
    &quot;@angular/common&quot;: &quot;~11.2.5&quot;,
    &quot;@angular/compiler&quot;: &quot;~11.2.5&quot;,
    &quot;@angular/core&quot;: &quot;~11.2.5&quot;,
    &quot;@angular/fire&quot;: &quot;^6.1.4&quot;,
    &quot;@angular/forms&quot;: &quot;~11.2.5&quot;,
    &quot;@angular/localize&quot;: &quot;^11.2.5&quot;,
    &quot;@angular/platform-browser&quot;: &quot;^11.2.5&quot;,
    &quot;@angular/platform-browser-dynamic&quot;: &quot;~11.2.5&quot;,
    &quot;@angular/router&quot;: &quot;~11.2.5&quot;,
    &quot;@asymmetrik/ngx-leaflet&quot;: &quot;^8.1.0&quot;,
    &quot;@ng-bootstrap/ng-bootstrap&quot;: &quot;^6.2.0&quot;,
    &quot;@popperjs/core&quot;: &quot;^2.9.1&quot;,
    &quot;@swimlane/ngx-datatable&quot;: &quot;^17.1.0&quot;,
    &quot;@types/jquery&quot;: &quot;^3.5.5&quot;,
    &quot;angular-calendar&quot;: &quot;^0.28.22&quot;,
    &quot;angular2-text-mask&quot;: &quot;^9.0.0&quot;,
    &quot;angularx-flatpickr&quot;: &quot;^6.5.2&quot;,
    &quot;apexcharts&quot;: &quot;^3.25.0&quot;,
    &quot;bootstrap&quot;: &quot;^4.6.0&quot;,
    &quot;bourbon&quot;: &quot;^4.3.4&quot;,
    &quot;chart.js&quot;: &quot;^2.9.4&quot;,
    &quot;date-fns&quot;: &quot;^1.30.1&quot;,
    &quot;easy-pie-chart&quot;: &quot;^2.1.7&quot;,
    &quot;file-saver&quot;: &quot;^2.0.5&quot;,
    &quot;firebase&quot;: &quot;^7.0 || ^8.0&quot;,
    &quot;flatpickr&quot;: &quot;^4.6.9&quot;,
    &quot;jquery&quot;: &quot;^3.6.0&quot;,
    &quot;jquery-sparkline&quot;: &quot;^2.4.0&quot;,
    &quot;leaflet&quot;: &quot;^1.7.1&quot;,
    &quot;lodash&quot;: &quot;^4.17.21&quot;,
    &quot;ng-apexcharts&quot;: &quot;^1.5.8&quot;,
    &quot;ng2-charts&quot;: &quot;^2.4.2&quot;,
    &quot;ngx-chips&quot;: &quot;^2.2.2&quot;,
    &quot;ngx-perfect-scrollbar&quot;: &quot;^9.0.0&quot;,
    &quot;ngx-toastr&quot;: &quot;^12.1.0&quot;,
    &quot;ngx-ui-switch&quot;: &quot;^8.3.0&quot;,
    &quot;peity&quot;: &quot;^3.3.0&quot;,
    &quot;popper.js&quot;: &quot;^1.16.1&quot;,
    &quot;quill&quot;: &quot;^1.3.7&quot;,
    &quot;rxjs&quot;: &quot;^6.6.6&quot;,
    &quot;sweetalert2&quot;: &quot;^7.33.1&quot;,
    &quot;text-mask-addons&quot;: &quot;^3.8.0&quot;,
    &quot;tslib&quot;: &quot;^2.1.0&quot;,
    &quot;zone.js&quot;: &quot;~0.10.3&quot;
  },
  </code></pre>
  <p><code>npm run build:i18n</code> is set to run <code>ng build --prod --localize</code> command.</p>
  <p>Problem:<br><code>npm run build:i18n</code> fails every time with this error:</p>
  <pre><code>Error: src/app/merchandises/merchandises.service.ts:6:24 - error TS2307: Cannot find module 'file-saver/src/fileSaver' or its corresponding type declarations.
  6 import { saveAs } from 'file-saver/src/fileSaver';
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: ./src/app/merchandises/merchandises.service.ts
  </code></pre>
  <p>But on my pc where I use same version of node, npm and nagular/cli it works just fine and <code>file-saver</code> package is clearly in dependencies. I'm not caching anything at this point (I did but I have removed it while testing).</p>
  <p>Any ideas?</p>