4

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.

Kikkomann
  • 295

1 Answers1

8

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.