title: Heroku devDependencies build failing during deployment
body: <p>I am working on a NestJs backend app and trying to deploy it on Heroku with Heroku-cli. At the beginning, I was able to deploy and run it but after some dependencies update, it keeps failing and below is the error related to the issue.</p>
  <pre><code>remote: -----&gt; Pruning devDependencies
  remote:        
  remote:        &gt; bcrypt@5.0.1 install node_modules/bcrypt
  remote:        &gt; node-pre-gyp install --fallback-to-build
  remote:        
  remote:        sh: 1: node-pre-gyp: not found
  remote:        npm ERR! code ELIFECYCLE
  remote:        npm ERR! syscall spawn
  remote:        npm ERR! file sh
  remote:        npm ERR! errno ENOENT
  remote:        npm ERR! bcrypt@5.0.1 install: `node-pre-gyp install --fallback-to-build`
  remote:        npm ERR! spawn ENOENT
  remote:        npm ERR! 
  remote:        npm ERR! Failed at the bcrypt@5.0.1 install script.
  remote:        npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  remote:        
  remote:        npm ERR! A complete log of this run can be found in:
  remote:        npm ERR!     /tmp/npmcache.YhodU/_logs/2022-04-06T09_19_17_828Z-debug.log
  remote: 
  remote: -----&gt; Build failed
  remote:        
  remote:        We're sorry this build is failing! You can troubleshoot common issues here:
  remote:        https://devcenter.heroku.com/articles/troubleshooting-node-deploys
  remote:        
  remote:        If you're stuck, please submit a ticket so we can help:
  remote:        https://help.heroku.com/
  remote:        
  remote:        Love,
  remote:        Heroku
  remote:        
  remote:  !     Push rejected, failed to compile Node.js app.
  remote: 
  remote:  !     Push failed
  remote: Verifying deploy...
  remote: 
  remote: !       Push rejected to d....y-e....s.
  remote: 
  To https://git.heroku.com/d....y-e....s.git
   ! [remote rejected] master -&gt; master (pre-receive hook declined)
  error: failed to push some refs to 'https://git.heroku.com/d....y-e....s.git'
  </code></pre>
  <p>Is someone already meet this issue before ? If yes, should I deal with it ?</p>
  <p><strong>PS: I have hidden the URL because the project is private.</strong></p>