frontend-united / generator-drupal-theme

A yeoman generator to start the foundation of any Drupal theme.
38 stars 15 forks source link

Error: Cannot find module 'gulp-compass' #18

Closed fallenturtle closed 9 years ago

fallenturtle commented 9 years ago

I'm trying to figure out why I get "Error: Cannot find module 'gulp-compass'" when I run gulp when used in conjunction with the Aurora drupal theme. I've done everything multiple times, made sure I was install the extras, did npm install, bower install, tried clearing their caches and doing it again, but I still keep getting this same error. I see how I can install gulp-compass, but I assume since its not in the package.json that was generated, that the call to install it is somewhere else... but I can't figure out where. Any idea where I might be going astray?

gulp 3.8.10 bower 1.3.12 npm 1.4.3 ruby 2.0.0p481 yeoman 1.3.3 aurora 7.x-3.4

For extras I chose Gulp and Bower.

FWIW, I'm also having this issue if there's any connection:https://github.com/Snugug/generator-aurora/issues/15

Thanks, Andrew

Edit: I found this in the repo which I assume is suppose to be the basis of my package.json file: generator-drupal-theme/extras/templates/_gulp.package.json

This is what my package.json file looks like currently:

{
  "name": "fallenturtle",
  "version": "0.0.0",
  "dependencies": {},
  "devDependencies": {
    "gulp": "^3.6.0",
    "gulp-jshint": "^1.5.1",
    "jshint-stylish": "^0.1.5",
    "compass-options": "^0.1.1",
    "browser-sync": "^0.7.4",
    "gulp-shell": "^0.2.4"
  },
  "scripts": {
    "postinstall": "find node_modules/ -name \"*.info\" -type f -delete"
  }
}

Edit: So after finding the local version of this file (/usr/local/lib/node_modules/generator-drupal-theme/extras/templates/_gulp.package.json) I've ascertained that for some reason npm install -g generator-drupal-theme isn't grabbing me the latest and greatest from the master branch. Looking at the output its installing version 0.1.5 which seems to predate the patch _gulp.package.json that adds the required gems. Should I just instead be grabbing the latest version of github and manually copying it to/usr/local/lib/node_modules/generator-drupal-theme/ ?

fallenturtle commented 9 years ago

Using the latest files from the master branch fixed my issue.