fourkitchens / emulsify

DEPRECATED (see README for new version)
GNU General Public License v2.0
163 stars 70 forks source link

Need to manually download and extract starterkit #147

Open johnreytanquinco opened 7 years ago

johnreytanquinco commented 7 years ago

After following this instruction, I am getting this message during yarn install step:

yarn install v1.0.2
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.1.2: The platform "linux" is incompatible with this module.
info "fsevents@1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "stylelint-config-standard@17.0.0" has incorrect peer dependency "stylelint@^8.0.0".
warning "postcss-reporter@4.0.0" has incorrect peer dependency "postcss@^6.0.0".
warning "stylelint-config-recommended@1.0.0" has incorrect peer dependency "stylelint@^8.0.0".
warning "ajv-keywords@1.5.1" has incorrect peer dependency "ajv@>=4.10.0".
[4/4] Building fresh packages...
$ ./scripts/pattern_lab.sh && ./scripts/twig_functions.sh
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Installing drupal-pattern-lab/edition-twig-standard (v2.2.2)
  - Installing drupal-pattern-lab/edition-twig-standard (v2.2.2): Loading from cache
Created project in pattern-lab
> PatternLab\Installer::setProjectInstall
> PatternLab\Installer::getSuggestedStarterKits
> PatternLab\Installer::getConfigOverrides
Loading composer repositories with package information
Updating dependencies (including require-dev)                                                                   
Package operations: 16 installs, 0 updates, 0 removals
  - Installing twig/twig (v1.34.4): Loading from cache
> PatternLab\Installer::postPackageInstall
  - Installing symfony/yaml (v3.3.9): Loading from cache
> PatternLab\Installer::postPackageInstall
  - Installing symfony/process (v3.3.9): Loading from cache
> PatternLab\Installer::postPackageInstall
  - Installing symfony/finder (v3.3.9): Loading from cache
> PatternLab\Installer::postPackageInstall
  - Installing symfony/filesystem (v3.3.9): Loading from cache
> PatternLab\Installer::postPackageInstall
  - Installing symfony/event-dispatcher (v3.3.9): Loading from cache
> PatternLab\Installer::postPackageInstall
  - Installing shudrum/array-finder (v1.1.0): Loading from cache
> PatternLab\Installer::postPackageInstall
  - Installing seld/jsonlint (1.6.1): Loading from cache
> PatternLab\Installer::postPackageInstall
  - Installing michelf/php-markdown (1.7.0): Loading from cache
> PatternLab\Installer::postPackageInstall
  - Installing kevinlebrun/colors.php (1.0.2): Loading from cache
> PatternLab\Installer::postPackageInstall
  - Installing doctrine/collections (v1.4.0): Loading from cache
> PatternLab\Installer::postPackageInstall
  - Installing alchemy/zippy (0.3.5): Loading from cache
> PatternLab\Installer::postPackageInstall
  - Installing pattern-lab/core (v2.8.1): Loading from cache
> PatternLab\Installer::postPackageInstall
  - Installing pattern-lab/patternengine-twig (v2.2.3): Loading from cache
> PatternLab\Installer::postPackageInstall
  - Installing pattern-lab/styleguidekit-assets-default (v3.4.2): Loading from cache
> PatternLab\Installer::postPackageInstall
  - Installing pattern-lab/styleguidekit-twig-default (v3.0.3): Loading from cache
> PatternLab\Installer::postPackageInstall
symfony/yaml suggests installing symfony/console (For validating YAML files using the lint command)
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/event-dispatcher suggests installing symfony/http-kernel ()
alchemy/zippy suggests installing ext-zip (To use the ZipExtensionAdapter)
alchemy/zippy suggests installing guzzle/guzzle (To use the GuzzleTeleporter)
Writing lock file
Generating autoload files
> PatternLab\Installer::postUpdateCmd

suggested starterkits that work with this edition:

  1: drupal-pattern-lab/starterkit-twig-demo
  2: drupal-pattern-lab/starterkit-twig-base

downloading the starterkit. this may take a few minutes...
finished downloading the starterkit...
failed to extract the starterkit. easiest solution is to manually download it and copy <path>./dist</path to ./source/...
Done in 167.80s.
evanmwillhite commented 7 years ago

Did you try just rerunning the install script by chance? I've had timeout and/or rate limit errors pop up that didn't occur on a second pass.

johnreytanquinco commented 7 years ago

Yes, I did that too but getting the same message: failed to extract the starterkit... I even just manually run composer create-project... that is inside the script by no luck. Same result.

evanmwillhite commented 7 years ago

We had someone run into this as well on Linux, which is what it looks like you're using. I think this goes beyond Emulsify into the Pattern Lab composer install script, so I'll need to do a bit of digging.

terrabruder commented 6 years ago

Based on the status of #209, should this be closed?

(Sorry for the "close this" spam. I'm beefing up on Emulsify and reviewing outstanding issues for potential gotchas is on my list.)

danny-englander commented 6 years ago

I ran into this too and I'm using Docksal. The solution was to install bsdtar

fin exec 'sudo apt-get update -y && sudo apt-get install bsdtar -y'

... or without the fin exec part if you're in Linux native I think. (I'm on OS X)

After that, everything worked fine and Pattern Lab extracted and installed automatically.

wheatpenny commented 5 years ago

sudo apt-get update -y && sudo apt-get install bsdtar -y worked for me on Ubuntu 18.10. Thanks @danny-englander !

evanmwillhite commented 5 years ago

Closing since solutions have been proposed. Feel free to reopen if needed.

nathandentzau commented 5 years ago

I ran into this trying to run this in a CI environment. After installing bsdtar I was able to successfully build the theme. @evanmwillhite can we get the project's documentation updated somewhere to highlight this? This is for sure a hard dependency of this project and not all systems come with bsdtar. Thanks!

evanmwillhite commented 5 years ago

Yea, I'll reopen this as a documentation task. I think we need to probably create a WIKI page dedicated to fleshing out requirements and link to it from README. Thanks @nathandentzau.