title: How do I prevent "npm install" or "npm remove" from deleting my personal package?
body: <p>I want to have a <code>node_modules/my-package/...</code> environment for one of my libraries.</p>
  
  <p>My <code>package.json</code> is <a href="http://package-json-validator.com/" rel="noreferrer">considered valid</a>. I has a name and a version and a few other fields:</p>
  
  <pre><code>(this is node-modules/my-paclage/package.json)
  {
      "name": "my-package",
      "version": "1.0.0",
      ...
  }
  </code></pre>
  
  <p>Then I wanted to add it to the <code>package-lock.json</code> file so npm knows about it. If you do not do that, an <code>npm install ...</code> or <code>npm uninstall ...</code> actually deletes the <code>my-package</code> folder I created under <code>node-modules/...</code>.</p>
  
  <p>So I decided to add the info in my <code>package-lock.json</code>, only I'm not able to make it work. All I added is the version like so:</p>
  
  <pre><code>(this is package-lock.json)
  ...
  "dependencies": {
      ...
      "my-package": {
          "version": "1.0.0"
      }
      ...
  }
  ....
  </code></pre>
  
  <p>Again, the syntax per se is correct. However, with that entry, when I try to do an <code>npm install ...</code> or <code>npm uninstall ...</code> it tells me:</p>
  
  <blockquote>
    <p>error 404 Not Found: krypton-search@1.0.0</p>
  </blockquote>
  
  <p>What am I doing wrong?</p>