I've installed all the prerequisites- sass, compass, Bower,Bundler, Yeoman,...
on running the command yo aurora I get:
Error: Cannot find module './build/Release/shell'
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. (/usr/local/lib/node_modules/generator-aurora/node_modules/execSync/index.js:30:11)
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)

so I can't create a subtheme.
What should I do?

Comments

ricksta’s picture

I've since fixed this by writing "compass create gd -r aurora --using aurora" in the terminal. This was not in the official documention for Aurora, but I found it elsewhere and it worked so problem solved.

iamcarrico’s picture

Status: Active » Postponed (maintainer needs more info)

What system are you on? And what version of the generator are you using?

Note: The compass-generated theme is not supported anymore, and could have unexpected results if you want to use Sass 3.3+.

Anonymous’s picture

Hi, I'm getting the exact same error on Mac 10.10. Not sure what the generator's version is but when I installed it I got
generator-aurora@0.3.0 /usr/local/lib/node_modules/generator-aurora...
Any help would be highly appreciated.

iamcarrico’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

This is a problem with ExecSync— https://github.com/mgutz/execSync/issues/27

Anonymous’s picture

Great. Thanks iamcarrico. However I don't understand the solution/workaround they give in the link you provided. Since I don't get what node-gyp is and how should I use it and as far as can say I already use python 2.7, I'd like to ask you if there's a quick way to start using aurora or just wait for ExecSync to be fixed. Thanks again for your time.

esod’s picture

I got the same error. I am seeing this issue with other stacks too. (See at https://github.com/gordonwritescode/gitty/issues/43).

I've gotten past it by installing node v0.10.36 instead. I'm using homebrew, so this isn't too big a deal:

$ brew uninstall node
$ rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/npm* // To remove everything npm-related manually:
$ brew install node010
$ npm install -g yo
$ npm install -g bower
$ npm install -g yo generator-aurora
codev0’s picture

Thanks esod, very helpful.

But I faced with a problem with brew permissions. Brew can't add link to node.

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/systemtap/tapset/node.stp
/usr/local/share/systemtap/tapset is not writable.

You can try again using:
  brew link node
==> Summary
:beer:  /usr/local/Cellar/node/0.12.0: 2196 files, 25M

I solved this with sudo chown -R whoami /usr/local

davidfells81@gmail.com’s picture

Still experiencing this... any progress? An actual fix aside from changing the node version (which isn't easy if you didn't install with homebrew, nvm has it's own suite of issues)

rho_’s picture

Category: Support request » Feature request
Status: Closed (won't fix) » Active

This still seems to be occurring. @iamcarrico is correct about execSync, but that module will remain a problem for folks running python 3 or node 0.12. As suggested in the execSync issue, exec-sync should be used as a replacement. It solves a lot of the python/node version issues.

rho_’s picture

Digging a bit deeper, it looks like this very thing was addressed in the generator-drupal-theme issues. It appears the fix is there, but has not been rolled into a tag therefore will not come down with an npm install.

iamcarrico’s picture

Status: Active » Fixed

Whoops. I pushed a release. Sorry all y'all—

Status: Fixed » Closed (fixed)

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