mediacurrent / theme_generator_8

Yeoman generator for Drupal Themes - lets you quickly set up a Drupal 8 theme with sensible defaults and best practices.
MIT License
100 stars 24 forks source link

Installation Issue #86

Closed begrafx closed 3 years ago

begrafx commented 3 years ago

I installed with the instructions in the docs. Managed to get it working, however I have hit a snag. PatternLab doesn't install. Looking at my console messages, it says:

npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@pattern-lab/core@5.14.1', npm WARN EBADENGINE required: { node: '>=12.12.0' }, npm WARN EBADENGINE current: { node: 'v12.11.1', npm: '7.6.0' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@pattern-lab/engine-mustache@5.14.0', npm WARN EBADENGINE required: { node: '>=12.12.0' }, npm WARN EBADENGINE current: { node: 'v12.11.1', npm: '7.6.0' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@pattern-lab/engine-twig-php@5.14.1', npm WARN EBADENGINE required: { node: '>=12.12.0' }, npm WARN EBADENGINE current: { node: 'v12.11.1', npm: '7.6.0' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@pattern-lab/live-server@5.13.0', npm WARN EBADENGINE required: { node: '>=12.12.0' }, npm WARN EBADENGINE current: { node: 'v12.11.1', npm: '7.6.0' } npm WARN EBADENGINE }

So it would appear that I need to update NODE. Checking my system, I HAVE Version 15.11.0 installed. I was going to just update the .NVMRC file to the newer version, however, looking back at the install instructions, it says:

`

Move into the new directory you created above, and install Node:

nvm install 12.10.0 && node -v > .nvmrc

This will install version v12.10.0 of NodeJS (Preliminary tests have shown issues with newer versions of node at this time).

It will create .nvmrc in the root of your project.

`

So I'm unsure how to best proceed at this point. I was watching a video from Mediacurrent on YouTube that uses the generator, and it is talking about working with PatternLab. Do I bump up to 12.12.0, so it's enough to get PatternLab to install? Is the "...Preliminary tests have shown issues with newer versions of node at this time" message, "Old news", and I should just use 15? I appreciate any advice/direction anyone can offer.

begrafx commented 3 years ago

I have found the solution. Anyone experiencing similar issues, I refer you to #85. I am closing this.