The best and easiest way to install Modernizr is to use drush, the command-line tool for Drupal.
drush en modernizr -y
This will enable the Modernizr module and automatically download a development copy of modernizr.js. If you'd like to replace your current file, delete it and run the following command:
Drush can detect whether or not you're using the Libraries API and place the file in the correct location within your Drupal codebase. Its default location is where Libraries looks anyway:
- Libraries enabled:
Libraries disabled:will be deprecated as of 7.x-3.2
If you are unable or unwilling to use Drush, you'll have to go to modernizr.com, get the file from the site, and upload it to