I removed the old version of grunt first, then I installed the new grunt version, and then I got this error:
D:\\www\\grunt-test\\grunt grunt-cli: The
I had the same issue in Vagrant.
I have used sudo to run the command to install.
sudo npm install -g grunt-cli
It worked for me.