title: Override npm package dependency
body: <p>I read this: <a href="https://stackoverflow.com/questions/15806152/how-do-i-override-nested-npm-dependency-versions">How do I override nested NPM dependency versions?</a></p>
  
  <p>Unfortunately, it does not solve my problem.</p>
  
  <p>I am trying to change a package from using a specific dependency to use another version of that dependency.</p>
  
  <p>Is it built into a package what version of a dependency it should use, or is it possible to change it?</p>
  
  <p>In my case specifically, I am trying to change <code>css-loader</code>'s default dependency on <code>cssnano@3.10.0</code> (<em>latest</em>) to instead be dependent on <code>cssnano@4.0.0-rc.2</code> (<em>next</em>).</p>
  
  <p>From the second answer in the above link, user <em>trickpatty</em> notes that:</p>
  
  <blockquote>
    <p>this will be removed anytime you run npm i instead of editing your
    package-lock.json and adding the child dependency to "dependencies"
    there, add the child dependency to your package.json "dependencies"
    section</p>
  </blockquote>
  
  <p>Including <code>cssnano@4.0.0-rc.2</code> in package.json's devDependencies does nothing to <code>css-loader</code>. It still uses the other (default) version of <code>cssnano</code>.</p>