Gitignore ignore /dist directory? Why?

Thanks for all the insight guys, I am learning a lot! So I went ahead and set up bedrock-capistrano for my deployments. Everything is working beautifully, but i’m having another error now when I include capistrano/npm (so eventually i can run gulp to build everything before deployment). For some reason i am getting this error when i run bundle exec cap production deploy.

(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::runner::ExecuteError: Exception while executing as serveruser@serverip: npm exit status: 127
npm stdout: Nothing written
npm stderr: /usr/bin/env: npm: No such file or directory

SSHKit::Command::Failed: npm exit status: 127
npm stdout: Nothing written
npm stderr: /usr/bin/env: npm: No such file or directory

Tasks: TOP => deploy:updated => npm:install
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as serveruser@serverip: npm exit status: 127
npm stdout: Nothing written
npm stderr: /usr/bin/env: npm: No such file or directory

Im stumped, but i know this is something really dumb. BTW, I am using a bitnami lamp stack…