title: npm install fails to exec postinstall script bower install
body: <p>I snooped around the net for more than 48 hours &amp; failed to solve this.</p>
  
  <p>When I run the command 'npm install', it fails to execute the postinstall script 'bower install'. So, I I did an explicit bower install by using:</p>
  
  <pre><code>$npm install -g bower
  
  $bower install
  </code></pre>
  
  <p>After this, the 'app/bower_components' folder got populated alright. But, again when I try 'npm install', same issue. Unable to proceed further. </p>
  
  <p>I performed the following &amp; did not succeed in installing:</p>
  
  <ol>
  <li>Git is installed &amp; its path added in the PATH environment variable. And then run 'npm install'. Even restarted the command prompt in order for the PATH variable to reflect.</li>
  <li>Run 'npm install restify', though I don't know why the installation has to be made a REST service.
  I used this, as it was one of the suggestions I came across.</li>
  <li>In some post, it was mentioned that it could be due to firewall settings. Disabled the same &amp; tried as well.</li>
  <li>Changed all the files under my project 'angular-phonecat' to have read-write permissions. Did this by unchecking 'Read-only' option for the entire folder's contents.</li>
  <li>Run Git Bash as admin &amp; tried 'npm install'.</li>
  </ol>
  
  <p>Please help me run this app. :(</p>
  
  <p>Find below my logs:</p>
  
  <pre><code>600 info install angular-phonecat@0.0.0  
  601 info postinstall angular-phonecat@0.0.0  
  602 verbose unsafe-perm in lifecycle true  
  603 info angular-phonecat@0.0.0 Failed to exec postinstall script  
  604 error angular-phonecat@0.0.0 postinstall: `bower install`  
  604 error spawn ENOENT  
  605 error Failed at the angular-phonecat@0.0.0 postinstall script.  
  605 error This is most likely a problem with the angular-phonecat package,  
  605 error not with npm itself.  
  605 error Tell the author that this fails on your system:  
  605 error     bower install  
  605 error You can get their info via:  
  605 error     npm owner ls angular-phonecat  
  605 error There is likely additional logging output above.  
  606 error System Windows_NT 6.2.9200  
  607 error command "g:\\Workspace\\AngularProjects\\angular-phonecat\\node.exe" "g:\\Workspace\\AngularProjects\\angular-phonecat\\node_modules\\npm\\bin\\npm-cli.js" "install"  
  608 error cwd g:\Workspace\AngularProjects\angular-phonecat  
  609 error node -v v0.10.32  
  610 error npm -v 1.4.28  
  611 error syscall spawn  
  612 error code ELIFECYCLE  
  613 error errno ENOENT  
  614 verbose exit [ 1, true ]  
  </code></pre>