• Home
  • About
    • Xrlin photo

      Xrlin

      A blog for sharing my thoughts and knowledge

    • Learn More
    • Github
  • Posts
    • All Posts
    • All Tags
  • Projects

在WSL(Bash On Windows)中运行jekyll小记

29 Jan 2017

Reading time ~1 minute

  • 安装ruby开发环境和bundler;

  • 在Gemfile中添加jekyll,运行bundle会自动安装所有依赖,如果在使用bundle安装过程中出现allocat memory错误, 可以直接通过gem install xxx -v '版本号'进行安装;

  • 安装完jekyll后通过jekyll serve或者bundle exec jekyll serve命令启动jekyll服务,这时你会发现出现了下面的错误:

    jekyll 3.4.0 | Error:  Invalid argument - Failed to watch "/mnt/c/Users/xr_li/OneDrive/Projects/xrlin.github.io/.git/hooks": the given event mask contains no legal events; or fd is not an inotify file descriptor.
    
    

    这时通过添加--force_polling这个option便可以避免这错误,即运行jekyll serve --force_polling命令。



jekyll Like Tweet +1