I believe “node” is reserved word for terminal in ubuntu, so when you install node through package manager (apt-get) it saves command as “nodejs” not “node” which causes issues with new cli tools installed via npm command since they are looking for “node” command.
You need to symlink it through following command:
ln -s /usr/bin/nodejs /usr/bin/node
Also, originally npm command require “sudo” to install new packages.
You can avoid this by doing following:
npm config set prefix '~/.npm-packages'
You also need to ad following to ~/.bashrc file