Permission denied rm a symlink I own on OSX 10
Only users with write access to a directory can remove its content. In your case you can check with ls -ld /usr/local/bin who the owner of this directory is. And than either switch to this user or use sudo rm /usr/local/bin/npm to remove the link.