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 '../extras/extras.js' #9

Closed seafarer closed 10 years ago

seafarer commented 10 years ago

Tried to install this to test it out and got this error. Here is the full terminal output:

    Error: Cannot find module '../extras/extras.js'
      at Function.Module._resolveFilename (module.js:338:15)
      at Function.Module._load (module.js:280:25)
      at Module.require (module.js:364:17)
      at require (module.js:380:17)
      at Object.<anonymous> (/usr/local/lib/node_modules/generator-drupal-theme/app/index.js:11:14)
      at Module._compile (module.js:456:26)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Module.require (module.js:364:17)
iamcarrico commented 10 years ago

What was the commands you use to get this response?

Were you using the latest code? If not, what tag was being used?

seafarer commented 10 years ago

I basically walked through the instructions on the readme. I Installed the generator globally, made a new directory, cd into it, ran yo drupal-theme and got the error. I just ran npm generator-drupal-theme -v and got 1.3.21.

iamcarrico commented 10 years ago

I just pushed a new tag (0.1.2) with a lot of minor updates and fixes... see if it works now.

Also, to get the version, use npm list generator-drupal-theme as 1.3.21 is the version of npm, not the version of our package.

seafarer commented 10 years ago

Finally got back around to updating and trying this again and am still getting the same error. I looked in the folder in /usr/local/lib/node_modules/generator-drupal-theme and I am only seeing folders for app and node_modules. It doesnt look like an extras folder is included.

iamcarrico commented 10 years ago

Ah, I missed a few lines in the package.json file that meant npm wasn't including all the directories that were made. Published v0.1.3 with that update.