title: Cannot add dependency to sibling monorepo package using lerna
body: <p>How do I get one monorepo package to have a dependency on another using lerna?</p>
  
  <p>I have a directory structure like this in my monorepo:</p>
  
  <pre><code>packages
    pkg-a  (package name is @foo/pkg-a)
    pkg-b  (package name is @foo/pkg-b)
  </code></pre>
  
  <p>I want <code>@foo/pkg-a</code> to have <code>@foo/pkg-b</code> as a dependency, so I attempt the command:</p>
  
  <pre><code>npx lerna add @foo/pkg-b --scope=@foo/pkg-a
  </code></pre>
  
  <p>Lerna adds the dependency in <code>packages/pkg-a/package.json</code> as expected, but it then seemingly attempts to do an <code>lerna bootstrap</code> afterward, and it outputs the error:</p>
  
  <blockquote>
    <p>npm ERR! 404 Not Found - GET <a href="https://registry.npmjs.org/@foo%2fpkg-b" rel="nofollow noreferrer">https://registry.npmjs.org/@foo%2fpkg-b</a> - Not found</p>
  </blockquote>
  
  <p>It's completely failing to actually link to the local dependency. When <code>npx lerna boostrap</code> manually afterward, I continue getting the same error.</p>
  
  <p>It seems like either lerna documentation is either incredibly bad, lerna is very broken, or I'm completely missing the point of what it's supposed to let me do. How do I get one monorepo package to be linked to another using lerna?</p>
  
  <p><strong>Update</strong></p>
  
  <p>The <code>lerna link</code> command seems to work to get things in the right state after the partially-failing <code>lerna add</code> command. Is there a way to get  <code>lerna add</code> to do the right thing in the first place?</p>