ed 154 packages in 10s
$ ls | grep package-lock
</code></pre>
<p>Run <code>npm ci</code> in that project</p>
<pre><code class="language-bash">$ npm ci
added 154 packages in 5s
</code></pre>
<p>Configure Travis CI to build using <code>npm ci</code> instead of <code>npm install</code>:</p>
<pre><code class="language-bash"># .travis.yml
install:
- npm ci
# keep the npm cache around to speed up installs
cache:
  directories:
  - "$HOME/.npm"
</code></pre>
<h3 id="configuration">Configuration</h3>
<h4 id="instal