I had the same problem. The reason – wrong proxy was configured and because of that npm was unable to download packages.
So your best bet is to the see the output of
$ npm install --verbose
and identify the problem. If you have never configured proxy, then possible causes can be
- Very outdated npm version.
- Some problem with your internet connection.
- Permissions are not sufficient for npm to modify files.