Q: Install newer version of grunt I submit this question‌ in stackoverflow, A person answered 
Now I want to install a newer version of grunt?

A: It seems like that patch isn't in a release that has been pushed to npm yet. So you need to grab the master version from github.
npm uninstall grunt
npm install https://github.com/gruntjs/grunt/archive/master.tar.gz

Or the shorter version as mentioned in the comments:
npm install gruntjs/grunt

