Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svgo worker not found #4

Open
johnpitchko opened this issue Mar 11, 2019 · 7 comments
Open

svgo worker not found #4

johnpitchko opened this issue Mar 11, 2019 · 7 comments

Comments

@johnpitchko
Copy link

@johnpitchko johnpitchko commented Mar 11, 2019

Received the following error when launching jekyll using the plugin:

svgo worker: `svgo` not found; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options)

In my _config.yml:

# Plugins
plugins:
  - jekyll-compress-images

imageoptim:
  # Disabling svgo because it throws some error
  svgo: false
  jpegrecompress:
    allow_lossy: true
    quality: 2
    # max_quality: 80

Not sure why svgo worker is being triggered when its specifically disabled in the config.

@simpixelated

This comment has been minimized.

Copy link

@simpixelated simpixelated commented Apr 12, 2019

It looks like the ability to configure imageoptim was added to master but never published:
1.2...master

@valerijaspasojevic would you mind publishing a new version with your latest changes?

@andreadellacorte

This comment has been minimized.

Copy link

@andreadellacorte andreadellacorte commented Sep 8, 2019

@valerijaspasojevic please ☝️

@davidpfahler

This comment has been minimized.

Copy link

@davidpfahler davidpfahler commented Oct 3, 2019

FYI, you can add the gem to your Gemfile like this and it works:

gem 'jekyll-compress-images', :git => 'https://github.com/valerijaspasojevic/jekyll-compress-images.git'
@naufdotal

This comment has been minimized.

Copy link

@naufdotal naufdotal commented Oct 28, 2019

you should install svgo worker first with npm.
svgo installation.

After that, try jekyll build again

@mikebuss

This comment has been minimized.

Copy link

@mikebuss mikebuss commented Dec 27, 2019

I'm also getting this error. None of the steps above have worked. Editing a file with --watch enabled will trigger an infinite loop of the following error message:

      Regenerating: 1 file(s) changed at 2019-12-26 19:16:25
                    _compress_images_cache.yml
svgo worker: `svgo` not found; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options)
       Jekyll Feed: Generating feed for posts
                    ...done in 0.342562 seconds.

      Regenerating: 1 file(s) changed at 2019-12-26 19:16:25
                    _compress_images_cache.yml
svgo worker: `svgo` not found; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options)
       Jekyll Feed: Generating feed for posts
                    ...done in 0.357929 seconds.

      Regenerating: 1 file(s) changed at 2019-12-26 19:16:26
                    _compress_images_cache.yml
svgo worker: `svgo` not found; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options)
       Jekyll Feed: Generating feed for posts
                    ...done in 0.350581 seconds.

      Regenerating: 1 file(s) changed at 2019-12-26 19:16:26
                    _compress_images_cache.yml
svgo worker: `svgo` not found; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options)
       Jekyll Feed: Generating feed for posts

Any idea how to fix this? I have tried:

  • Installing svgo with nom install svgo. No change.
  • Using the Gemfile entry that @davidpfahler suggested. No change.
  • Adding the following to my _config.yml file:
imageoptim:
  pngout: false
  svgo: false
  verbose: false
@samlawski

This comment has been minimized.

Copy link

@samlawski samlawski commented Jan 3, 2020

@mikebuss It worked for me to do both together:

Update the Gemfile as davidpfahler suggested:

gem 'jekyll-compress-images', :git => 'https://github.com/valerijaspasojevic/jekyll-compress-images.git'

And also add to the _config.yml:

imageoptim:
  svgo: false
@mikebuss

This comment has been minimized.

Copy link

@mikebuss mikebuss commented Jan 3, 2020

Thanks @samlawski. I tried again with what you suggested and it worked, but only after I also added the following line to my configuration file:

exclude:
  - _compress_images_cache.yml

The 2 changes you suggested and the one above fixed the SVGO error and stopped the infinite regenerating. Thanks for the suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants
You can’t perform that action at this time.