We installed Grunt on 2 macs, new MacBook Pro with retina and new MacBook air. On the first computer following the documentation Grunt worked effortlessly. On the 2nd one we are getting the following errors

1) when I ran npm install I get

npm install
npm WARN package.json responsify@1.0.0 No description
npm WARN package.json responsify@1.0.0 No repository field.
npm WARN package.json responsify@1.0.0 No README data
npm WARN unmet dependency /Users/bluebee/Documents/Clients/EZD/sites/responsify/sites/all/themes/responsify/node_modules/grunt-contrib-compass requires grunt-lib-contrib@'~0.5.2' but will load
npm WARN unmet dependency /Users/bluebee/Documents/Clients/EZD/sites/responsify/sites/all/themes/responsify/node_modules/grunt-lib-contrib,
npm WARN unmet dependency which is version 0.6.1
npm WARN unmet dependency /Users/bluebee/Documents/Clients/EZD/sites/responsify/sites/all/themes/responsify/node_modules/grunt-contrib-compass requires tmp@'0.0.16' but will load
npm WARN unmet dependency /Users/bluebee/Documents/Clients/EZD/sites/responsify/sites/all/themes/responsify/node_modules/tmp,
npm WARN unmet dependency which is version 0.0.21

When I run grunt watch I get

Loading "watch.js" tasks...ERROR
>> Error: Cannot find module 'tiny-lr'
Loading "jshint.js" tasks...ERROR
>> Error: Cannot find module 'jshint'
Loading "imagemin.js" tasks...ERROR
>> Error: Cannot find module 'filesize'
Loading "parallel.js" tasks...ERROR
>> Error: Cannot find module 'q'
Loading "uglify.js" tasks...ERROR
>> Error: Cannot find module 'uglify-js'

I've attached all pertinent grunt files and folders in case it can be of any assistance in resolving this.

Thanks!!

CommentFileSizeAuthor
gruntfiles.zip1.95 MBmrynearson
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

iamcarrico’s picture

Status: Active » Fixed

Most likely an issue with npm...

Run npm cache clean && node install -g grunt-cli

Closing the issue, feel free to re-open if you have the issue again.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.