Github blog 'bundle exec jekyll serve' 에러 해결방법

반응형
요즘 github 블로그에 푹 빠져 살고 있습니다. 우선 다급한 나머지 에러 문제를 알려 드리고나서 블로그 만드는 방법을 쉽게 말씀드리겠습니다. 솔직히 인터넷 노가다를 아무리해도 해답을 제대로 알려주는 곳을 차아보기가 어려워 정말 힘이 들었는데, 다행히 방법을 찾았습니다.

 

1. bundle exec jekyll serve  ---> error

syskido@DESKTOP-GDNHL1C MINGW64 /c/syskido.github.io (master)
$ bundle exec jekyll serve
Configuration file: C:/syskido.github.io/_config.yml
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
            Source: C:/syskido.github.io
       Destination: C:/syskido.github.io/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
       Jekyll Feed: Generating feed for posts
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div(9, 16)

More info and automated migrator: https://sass-lang.com/d/slash-div

   ╷
31 │ $mfp-iframe-ratio:                    9/16;                       // Ratio of iframe (9/16 = widescreen, 3/4 = standard, etc.)
   │                                       ^^^^
   ╵
    C:\syskido.github.io\_sass\minimal-mistakes\vendor\magnific-popup\_settings.scss 31:39      @import
    C:\syskido.github.io\_sass\minimal-mistakes\vendor\magnific-popup\_magnific-popup.scss 3:9  @import
    minimal-mistakes.scss 10:9                                                                  @import
    C:\syskido.github.io\assets\css\main.scss 4:9                                               root stylesheet
DEPRECATION WARNING: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($value, 16px) or calc($value / 16px)

More info and automated migrator: https://sass-lang.com/d/slash-div

 

2. bundle install  --> error 

syskido@DESKTOP-GDNHL1C MINGW64 /c/syskido.github.io (master)
$ bundle install

[!] There was an error while loading `minimal-mistakes-jekyll.gemspec`: No such file or directory @ rb_sysopen - package.json. Bundler cannot continue.

 #  from C:/syskido.github.io/_site/minimal-mistakes-jekyll.gemspec:3
 #  -------------------------------------------
 #    spec.add_development_dependency "rake", ">= 12.3.3"
 >  end
 #  require "json"
 #  -------------------------------------------

 

 

3. bundle exec jekyll serve 실행 뒤 종료를 하고 싶을때  Ctrl C 실행시  [Server       running... press ctrl-c to stop.] 실행시  Terminate batch job (Y/N)?    N 실행시에            새로운 폴드가 생깁니다.  " _site"   해결방법은 이 폴드를 삭제하면 다시  bundle exec jekyll serve 다시 살아남. 

 

syskido@DESKTOP-GDNHL1C MINGW64 /c/syskido.github.io (master)
$ bundle exec jekyll serve
Configuration file: C:/syskido.github.io/_config.yml
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
            Source: C:/syskido.github.io
       Destination: C:/syskido.github.io/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
       Jekyll Feed: Generating feed for posts
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div(9, 16)

More info and automated migrator: https://sass-lang.com/d/slash-div


Run in verbose mode to see all warnings.
                    done in 0.329 seconds.
  Please add the following to your Gemfile to avoid polling for changes:
    gem 'wdm', '>= 0.1.0' if Gem.win_platform?
 Auto-regeneration: enabled for 'C:/syskido.github.io'
    Server address: http://127.0.0.1:4000
  Server running... press ctrl-c to stop.
[2024-06-26 23:56:21] ERROR `/favicon.ico' not found.
Terminate batch job (Y/N)? n

 

 

 

 

4. 바로 아래를 보시면  " _site " 라는 새로운 폴드가 생겨 났습니다.

syskido@DESKTOP-GDNHL1C MINGW64 /c/syskido.github.io (master)
$ ls
CHANGELOG.md  README.md    _includes/  assets/                          package-lock.json       staticman.yml
Gemfile       Rakefile     _layouts/   docs/                            package.json            test/
Gemfile.lock  _config.yml  _sass/      index.html                       screenshot-layouts.png
LICENSE       _data/       _site/      minimal-mistakes-jekyll.gemspec  screenshot.png

 

 

5. 정상적인 파일과 폴드입니다.

syskido@DESKTOP-GDNHL1C MINGW64 /c/syskido.github.io (master)
$ ls
CHANGELOG.md  README.md    _includes/  docs/                            package.json            test/
Gemfile       Rakefile     _layouts/   index.html                       screenshot-layouts.png
Gemfile.lock  _config.yml  _sass/      minimal-mistakes-jekyll.gemspec  screenshot.png
LICENSE       _data/       assets/     package-lock.json                staticman.yml

 

 

6.  "localhost:4000" serve 정상 작동모습

 

 

 

7.  "localhost:4000" serve error  작동모습

 

 

 

7.  serve  error  해결방법은 아주 간단합니다.

bundle exec jekyll serve 작업종료를 하면 자동적으로 이런 폴드가 생겨 나느것을 발견 했습니다. 그래서 에러가 발생되는 원인이 바로 이 폴드라는것을 알았습니다.  

    그래서 이 폴드 " _site "를 삭제하고 다시  bundle exec jekyll serve  실행하면                    다시 작업을  됩니다.

  

반응형