title: Npm install from repo not running `prepare`
body: <p>I have an npm package for common components hosted on an internal git server. For some reason when I call <code>npm install</code> in another project I want to consume this in it will not run the <code>prepare</code> hook. Obviously, this does not work since the npm package needs a <code>/dist</code> folder in node_modules to be able to consume the package.</p>
  
  <p>I have already tried things such as using the deprecated <code>prepublish</code> hook and even that does not get called. I also tried to do <code>postinstall</code> to see if I could build after install, while that hook did get called it failed because the devDependencies were not installed</p>
  
  <p>package.json</p>
  
  <pre><code>{
    "name": "common-components",
    "version": "0.1.0",
    "scripts": {
      "prepare": "npm run build",
      "build": "ng build",
      ...
    },
    "private": true,
    "dependencies": {
      ...
    },
    "devDependencies": {
      ...
    },
  }
  </code></pre>
  
  <p>command being used for install</p>
  
  <pre><code>npm install --save git+ssh://{URL-to-common-components-repo}}
  </code></pre>
  
  <p>I have read through the npm-scripts documentation <a href="https://docs.npmjs.com/misc/scripts" rel="noreferrer">https://docs.npmjs.com/misc/scripts</a> thoroughly and it seems like they insist that <code>prepare</code> hook should always be called for this exact use-case</p>
  
  <h1>Updated 5/6/2019</h1>
  
  <p>Just as a note I found this bug on NPM community <a href="https://npm.community/t/using-npm-ci-does-not-run-prepare-script-for-git-modules/632/4" rel="noreferrer">https://npm.community/t/using-npm-ci-does-not-run-prepare-script-for-git-modules/632/4</a>.</p>
  
  <p>I am using npm 6.4.1 which should work according to the bug</p>