2017-03-24 11 views
1

プロジェクト用にNetLify CMSをテストしていますが、開始前にgulpサーバーがクラッシュするため、ローカル環境では作業できません以下のエラー:NetLify CMS - ./bin/hugo.win32ファイルが見つからないため、Gulpe Serverエラーが発生しました。

$ npm start 

> [email protected] start C:\Users\maufa\Documents\web-development\kaldi-hugo-cms-template 
> gulp server 

[14:17:07] Requiring external module babel-register 
[14:17:08] Using gulpfile ~\Documents\web-development\kaldi-hugo-cms-template\gulpfile.babel.js 
[14:17:08] Starting 'hugo'... 
[14:17:08] Starting 'css'... 
[14:17:09] Starting 'js'... 
[14:17:09] Starting 'svg'... 
[14:17:09] Starting 'cms'... 
[14:17:09] Finished 'cms' after 150 ms 
events.js:160 
    throw er; // Unhandled 'error' event 
^

Error: spawn ./bin/hugo.win32 ENOENT 
at exports._errnoException (util.js:1022:11) 
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32) 
at onErrorNT (internal/child_process.js:359:16) 
at _combinedTickCallback (internal/process/next_tick.js:74:11) 
at process._tickCallback (internal/process/next_tick.js:98:9) 
at Module.runMain (module.js:606:11) 
at run (bootstrap_node.js:394:7) 
at startup (bootstrap_node.js:149:9) 
at bootstrap_node.js:509:3 
npm ERR! code ELIFECYCLE 
npm ERR! errno 1 
npm ERR! [email protected] start: `gulp server` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] start script 'gulp server'. 

したがって、binフォルダー内にhugo.win32があります。 しかし、このフォルダ内に、私はaveの:

  • hugo.darwin
  • hugo.exe
  • hugo.linux

任意の手掛かりを?

答えて

5

この問題はKaldi Hugo templateに特有のようです。 Windowsにインストールして同じエラーが発生した場合、hugo.exehugo.win32に改名してみました。 gulpfile.babel.js(Windowsの文字列識別子が間違っています)でエラーが見つかり、PRを送信しました。マージを待ちたくない場合は、直接バージョンを変更してください。https://github.com/netlify-templates/kaldi-hugo-cms-template/pull/3/files

関連する問題