"/Usr/Bin/Env: ‘Node’: No Such File or Directory" on Terminal Startup

I just updated to 20.04 and every time I open a terminal /usr/bin/env: ‘node’: No such file or directory shows at the very top. I have searched for answers but in the questions I found, npm did not work. It works for me though. I have no clue where to look or what to do.

1 Answer

If you used NVM for your node and npm, this may help:

nodepath=$(which node); sudo ln -s $nodepath /usr/bin/node

NVM installs it somewhere out of the norm, so creating this link solved my issue. You can run the command which node in your terminal to see where NVM installed it if you're curious.

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest