If you're on Mac OS X, you can try this:
sudo chmod 555 /usr/bin/shasum
nvm install ...
If that doesn't solve your problem, you need to install shasum
(perhaps using MacPorts).
If you're on Linux, use your distro's package manager to install it.