2016-12-14 5 views
0

Я пытаюсь развернуть пример приложения на страницах github, но он всегда дает мне ошибку каждый раз, когда я запускаю ng github-pages:deploy. Вот ошибка я получаю:ng github-pages: ошибка развертывания

Сбой команды: мерзавец гт -r использование: мерзавец гт [] [-] ...

-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 

Ошибка: Не удалось выполнить команду: мерзавец гт -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) 

Любая помощь будет оценена по достоинству.

ответ

0

Для будущих посетителей, GitHub страницы скрыт развернуть было удалена из нг-кли и будет доступны как различные НПМ refactor(@angular/cli): removed the github pages deploy command #4385

Но это выглядит как развертывание углового приложения на страницы GitHub теперь более легким с https://github.com/angular-buch/angular-cli-ghpages

Использование:

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

есть также более короткая команда NGH доступна

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

 Смежные вопросы

  • Нет связанных вопросов^_^