Can't get Jekyll setup with Tailwind

I tried following the instructions in your README and still got similar errors:

Microsoft Windows [Version 10.0.19042.630]
(c) 2020 Microsoft Corporation. All rights reserved.

C:\Users\justi\OneDrive\Documents\GitHub\tailwindcss-setup-examples\examples\jekyll>bundle config set --local path vendor/bundle

C:\Users\justi\OneDrive\Documents\GitHub\tailwindcss-setup-examples\examples\jekyll>bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching public_suffix 4.0.6
Installing public_suffix 4.0.6
Fetching addressable 2.7.0
Installing addressable 2.7.0
Using bundler 2.1.4
Fetching colorator 1.1.0
Installing colorator 1.1.0
Fetching concurrent-ruby 1.1.7
Installing concurrent-ruby 1.1.7
Fetching eventmachine 1.2.7 (x64-mingw32)
Installing eventmachine 1.2.7 (x64-mingw32)
Fetching http_parser.rb 0.6.0
Installing http_parser.rb 0.6.0 with native extensions
Fetching em-websocket 0.5.2
Installing em-websocket 0.5.2
Fetching ffi 1.13.1 (x64-mingw32)
Installing ffi 1.13.1 (x64-mingw32)
Fetching forwardable-extended 2.6.0
Installing forwardable-extended 2.6.0
Fetching i18n 0.9.5
Installing i18n 0.9.5
Fetching rb-fsevent 0.10.4
Installing rb-fsevent 0.10.4
Fetching rb-inotify 0.10.1
Installing rb-inotify 0.10.1
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching sass 3.7.4
Installing sass 3.7.4
Fetching jekyll-sass-converter 1.5.2
Installing jekyll-sass-converter 1.5.2
Fetching listen 3.3.2
Installing listen 3.3.2
Fetching jekyll-watch 2.2.1
Installing jekyll-watch 2.2.1
Fetching kramdown 1.17.0
Installing kramdown 1.17.0
Fetching liquid 4.0.3
Installing liquid 4.0.3
Fetching mercenary 0.3.6
Installing mercenary 0.3.6
Fetching pathutil 0.16.2
Installing pathutil 0.16.2
Fetching rouge 3.25.0
Installing rouge 3.25.0
Fetching safe_yaml 1.0.5
Installing safe_yaml 1.0.5
Fetching jekyll 3.8.7
Installing jekyll 3.8.7
Fetching jekyll-postcss 0.4.0
Installing jekyll-postcss 0.4.0
Fetching jekyll-purgecss 0.3.0
Installing jekyll-purgecss 0.3.0
Fetching tzinfo 2.0.3
Installing tzinfo 2.0.3
Fetching tzinfo-data 1.2020.4
Installing tzinfo-data 1.2020.4
Fetching wdm 0.1.1
Installing wdm 0.1.1 with native extensions
Bundle complete! 5 Gemfile dependencies, 30 gems now installed.
Bundled gems are installed into `./vendor/bundle`
Post-install message from sass:

Ruby Sass has reached end-of-life and should no longer be used.

* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
  primary implementation: https://sass-lang.com/install

* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
  sassc gem: https://github.com/sass/sassc-ruby#readme

* For more details, please refer to the Sass blog:
  https://sass-lang.com/blog/posts/7828841


C:\Users\justi\OneDrive\Documents\GitHub\tailwindcss-setup-examples\examples\jekyll>yarn install
yarn install v1.22.10
warning package.json: No license field
info No lockfile found.
warning No license field
[1/4] Resolving packages...
warning postcss-cli > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning postcss-cli > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning postcss-cli > chokidar > braces > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning postcss-cli > chokidar > braces > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
[2/4] Fetching packages...
info fsevents@1.2.13: The platform "win32" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 13.93s.

C:\Users\justi\OneDrive\Documents\GitHub\tailwindcss-setup-examples\examples\jekyll>bundle exec jekyll serve --trace --livereload
Configuration file: C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/_config.yml
Traceback (most recent call last):
        27: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/bin/jekyll:23:in `<main>'
        26: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/bin/jekyll:23:in `load'
        25: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-3.8.7/exe/jekyll:15:in `<top (required)>'
        24: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
        23: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
        22: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
        21: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
        20: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
        19: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-3.8.7/lib/jekyll/commands/serve.rb:75:in `block (2 levels) in init_with_program'
        18: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-3.8.7/lib/jekyll/commands/serve.rb:93:in `start'
        17: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-3.8.7/lib/jekyll/commands/serve.rb:93:in `each'
        16: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-3.8.7/lib/jekyll/commands/serve.rb:93:in `block in start'
        15: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-3.8.7/lib/jekyll/commands/build.rb:30:in `process'
        14: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-3.8.7/lib/jekyll/commands/build.rb:30:in `new'
        13: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-3.8.7/lib/jekyll/site.rb:32:in `initialize'
        12: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-3.8.7/lib/jekyll/site.rb:116:in `setup'
        11: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-3.8.7/lib/jekyll/site.rb:294:in `instantiate_subclasses'
        10: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-3.8.7/lib/jekyll/site.rb:294:in `map'
         9: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-3.8.7/lib/jekyll/site.rb:295:in `block in instantiate_subclasses'
         8: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-3.8.7/lib/jekyll/site.rb:295:in `new'
         7: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-postcss-0.4.0/lib/jekyll/converters/postcss.rb:15:in `initialize'
         6: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-postcss-0.4.0/lib/jekyll/converters/postcss.rb:15:in `fetch'
         5: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-postcss-0.4.0/lib/jekyll/converters/postcss.rb:15:in `block in initialize'
         4: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-postcss-0.4.0/lib/jekyll/converters/postcss.rb:15:in `new'
         3: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-postcss-0.4.0/lib/jekyll-postcss/socket.rb:13:in `initialize'
         2: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-postcss-0.4.0/lib/jekyll-postcss/socket.rb:60:in `start_dev_server'
         1: from C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-postcss-0.4.0/lib/jekyll-postcss/socket.rb:60:in `open'
C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/gems/jekyll-postcss-0.4.0/lib/jekyll-postcss/socket.rb:60:in `initialize': Interrupt
C:/Users/justi/OneDrive/Documents/GitHub/tailwindcss-setup-examples/examples/jekyll/vendor/bundle/ruby/2.6.0/bin/jekyll: Interrupt
Terminate batch job (Y/N)?
^CTerminate batch job (Y/N)?

Hey just a quick update to say that I’m good to go :grinning:

Apparently there was something in node that was added in node 11 and I had node 10, and updating node earlier didn’t work, so I had to reinstall from the website and it works perfectly. Here’s the repo I got working: https://github.com/kangabru/jekyll-tailwindcss-boilerplate

Thank you all for all the help

1 Like

Okay good. Would not have guessed that as there is no mention of Node in the error traceback but I guess postcss plugin must run node