Just after upgrading the npm on our 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, we run the following command.
sudo ln -s /usr/bin/nodejs /usr/bin/node
Now check in your system. We hope it works for you also.