2016-12-14 13 views
0

サンプルアプリケーションをgithubページにデプロイしようとしていますが、ng github-pages:deployを実行するたびに常にエラーが表示されます。ng github-pages:デプロイメントエラー

コマンドが失敗しました::ここで私が得ているエラーですgitのRMは-r 使用:gitのRMは[] [ - ] ...

-n, --dry-run   dry run 
-q, --quiet   do not list removed files 
--cached    only remove from the index 
-f, --force   override the up-to-date check 
-r     allow recursive removal 
--ignore-unmatch  exit with a zero status even if nothing matched 

エラー:コマンドが失敗しました:gitのrmを-r 使用法:git rm [] [ - ] ...

-n, --dry-run   dry run 
-q, --quiet   do not list removed files 
--cached    only remove from the index 
-f, --force   override the up-to-date check 
-r     allow recursive removal 
--ignore-unmatch  exit with a zero status even if nothing matched 


at ChildProcess.exithandler (child_process.js:206:12) 
at emitTwo (events.js:106:13) 
at ChildProcess.emit (events.js:191:7) 
at maybeClose (internal/child_process.js:877:16) 
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 

何か助けていただければ幸いです。 githubのページが展開し、将来の訪問者のための

答えて

0

は、NG-CLIから削除されているとrefactor(@angular/cli): removed the github pages deploy command #4385

異なるNPMとして利用できるようになります。しかしgithubのページへの角度アプリを展開するhttps://github.com/angular-buch/angular-cli-ghpages

で今より楽であるように見えます

使用法:

ng build --prod --base-href "https://USERNAME.github.io/REPOSITORY/" 
angular-cli-ghpages [OPTIONS] 

可能な短いNGHコマンドもあります
関連する問題