Just after upgrading the npm on my Ubuntu system, npm command stopped working. Suddenly it started showing the error, “/usr/bin/env: node: No such file or directory”.
To do the quick solution, I run the following command and it works for me.
sudo ln -s /usr/bin/nodejs /usr/bin/node
Hope it works for you also.