“ snap install node”并删除节点apt安装的节点后的“ / usr / bin / node:无此文件或目录”

在Ubuntu 19.04中,我做到了:

sudo snap install node --classic --channel=13
sudo apt remove nodejs

But now if I do node or nodejs, I get the error:

/usr/bin/node: No such file or directory

最佳答案

打开一个新的外壳,它将起作用。

https://forum.snapcraft.io/t/snap-bin-npm-no-such-file-or-directory-after-snap-remove-node-and-installing-node-via-apt/11981/4