[英]Serve --watch not working in jekyll
我遇到了jekyll問題。 我以為我會最終嘗試一下,所以我用必要的寶石給Windows干凈地安裝了它(運行Windows 7 64bit)。 我繼續使用
jekyll new Test
然后CD進入測試目錄並使用
jekyll serve --watch
它標記了這個
Configuration file: C:/Users/Defa1t/Desktop/Test/_config.yml
Source: C:/Users/Defa1t/Desktop/Test
Destination: C:/Users/Defa1t/Desktop/Test/_site
Generating...
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/posix-spawn-0.3.9/lib/posix
/spawn.rb:164: warning: cannot close fd before spawn
'which' is not recognized as an internal or external command,
operable program or batch file.
←[31m Liquid Exception: undefined method `[]' for nil:NilClass in _posts/2014-1
1-01-welcome-to-jekyll.markdown←[0m
jekyll 2.4.0 | Error: undefined method `[]' for nil:NilClass
有人知道這個問題嗎?
我發現的唯一解決方案(我希望它也對您有用)是使用舊版本的Python (是的,不是Python,而是Ruby,問題可能出在熒光筆上)。
C:\\Python27
更改PATH環境變量,使C:\\Python27
和C:\\Python27\\Scripts
作為第一個條目。 我為此使用了Rapid Environment Editor。 當然,您也可以編寫一個簡單的批處理文件,將其添加到現有條目的前面:
SET PATH=C:\\Python27\\;C:\\Python27\\Scripts\\;%PATH%
看看是否可行。 這個對我有用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.