当我尝试用Gulp运行它时,Jekyll会给出错误

时间:2015-08-12 17:18:57

标签: javascript node.js gulp jekyll

我在Windows 10 PC上,我正在尝试让Jekyll与Gulp一起运行,但是当我运行默认任务时,我会在控制台中打印出以下内容:

<html>
<head>
    <script type="text/javascript">
    var obj,i;
    function myfun(flag)
    {
        if(window.XMLHttpRequest)       
        {
            obj=new XMLHttpRequest();

        }
        else
        {
            obj = new ActiveXObject("Microsoft.XMLHTTP")
        }

        obj.onreadystatechange=function()
        {
            if(obj.readyState==4 && obj.status==200)
            {

                var data=JSON.parse(obj.responseText);

                getData(flag);
            }
        }

        obj.open("GET","try_json.php",true);
        obj.send();
    }

    function getData(flag)
    {

        var country_name=document.getElementById("country");
        var state_name=document.getElementById("state");
        var city_name=document.getElementById("city");


    }

    </script>
</head>

<body>
<select id="country" onchange="myfun(0)">
    <option>Select Country</option>
    <option>India</option>
    <option>USA</option>
    <option>UK</option>
</select>

<select id="state" onchange="myfun(1)"></select>
<select id="city"></select>

</body>
</html>

这是我的Gulpfile:

$ gulp
[18:08:08] Using gulpfile ~\Desktop\personal-website\gulpfile.js
[18:08:08] Starting 'sass'...
[18:08:08] Starting 'scripts'...
[18:08:08] Starting 'images'...
[18:08:08] Starting 'jade'...
[18:08:08] Starting 'jekyll-build'...
[18:08:08] Starting 'watch'...
[18:08:08] Finished 'watch' after 27 ms
[18:08:08] Finished 'scripts' after 122 ms
[18:08:08] Finished 'images' after 110 ms
[18:08:08] Finished 'jade' after 107 ms
[18:08:08] Finished 'sass' after 236 ms
Configuration file: none
            Source: C:/Users/rjcro/Desktop/personal-website
       Destination: C:/Users/rjcro/Desktop/personal-website/_site
      Generating...
jekyll 2.5.3 | Error:  No such file or directory @ rb_sysopen - /Users/rjcro/Desktop/personal-website/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/unique-stream/node_modules/through2-filter/node_modules/through2/node_modules/readable-stream/doc/stream.markdown
[18:08:54] 'jekyll-build' errored after 46 s
[18:08:54] Error: 1
    at formatError (c:\Users\rjcro\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:169:10)
    at Gulp.<anonymous> (c:\Users\rjcro\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:195:15)
    at Gulp.emit (events.js:107:17)
    at Gulp.Orchestrator._emitTaskDone (C:\Users\rjcro\Desktop\personal-website\node_modules\gulp\node_modules\orchestrator\index.js:264:8)
    at C:\Users\rjcro\Desktop\personal-website\node_modules\gulp\node_modules\orchestrator\index.js:275:23
    at finish (C:\Users\rjcro\Desktop\personal-website\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:21:8)
    at ChildProcess.cb (C:\Users\rjcro\Desktop\personal-website\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:29:3)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1015:16)
    at Process.ChildProcess._handle.onexit (child_process.js:1087:5)

所以,我已经找了很多修复此问题,我已经将.bat应用到&#34; jekyll&#34;在spawn部分,错误消息对我来说似乎真的很神秘。在我见过的大部分视频中都没有发生过这种情况,也许我错过了一些大事,但我似乎无法看到我哪里出错了。提前谢谢!

0 个答案:

没有答案