I\'m getting an error when using npm to install grunt-cli globally. It\'s related to lodash:
npm WARN deprecated lodash@2.4.2: lodash@<3.0.0 is no longer
The packagegrunt-cli relies on a older version of lodash. It shouldn't affect the functionality of grunt; it's just a warning message.
grunt-cli
So, you're doing nothing wrong, it's not an error message, just a warning, and the way you've installed grunt-cli should work fine.