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.
Asked
Active
Viewed 1.2k times
4

Kikkomann
- 295
1 Answers
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.

Will Estes
- 96
failed to create symbolic link '/usr/bin/node': File exists
. Node is in/home/.nvm/versions/node/v15.0.1/bin/node
. I don't know if that says anything. – Kikkomann Nov 12 '20 at 20:01/home/william/.nvm/versions/node/v14.15.0/bin/node
Did you try running that command? – Will Estes Nov 13 '20 at 21:35