“/usr/bin/env: node: No such file or directory”

I installed node js and gulp, but once i tried to run gulp from terminal I am getting

“/usr/bin/env: node: No such file or directory”

Run the following command to resolve this issue

sudo apt-get install nodejs-legacy