title: How to install react-phone-number-input with Yarn?
body: <p>I want to install the <a href="https://www.npmjs.com/package/react-phone-number-input" rel="nofollow noreferrer"><code>react-phone-number-input</code></a> package into my Reactjs project. I am using Yarn as my package manager.</p>
  
  <p>So I did the following command</p>
  
  <pre><code>yarn add react-phone-number-input
  </code></pre>
  
  <p>and received the following error.</p>
  
  <blockquote>
    <p>./node_modules/dnd-core/lib/HandlerRegistry.js
    Module build failed: Error: ENOENT: no such file or directory, open '/path/to/node_modules/dnd-core/lib/HandlerRegistry.js'</p>
  </blockquote>
  
  <p>What am I doing wrong? How can I use Yarn to install react-phone-number-input?</p>
  
  <p>Edit</p>
  
  <p>Based on an answer, I tried the following</p>
  
  <pre><code>rm -rf node_modules
  yarn autoclean --init # creates .yarnclean file
  yarn autoclean --force
  yarn install
  yarn add react-phone-number-input
  </code></pre>
  
  <p>and got the following error.</p>
  
  <blockquote>
    <p>TypeError: _dndCore.DragDropManager is not a constructor</p>
  </blockquote>