Angular 角度2:github部署问题

Angular 角度2:github部署问题,angular,github,deployment,Angular,Github,Deployment,我运行了以下命令:npmi-g 之后,我运行以下命令:nggithubpages:deploy 为什么我总是收到以下信息: The specified command github-pages:deploy is invalid. For available options, see `ng help`. ng github页面:部署已从angular cli的最新版本中删除 要执行此操作,请执行以下操作: ng build --prod --base-href "https://USERNA

我运行了以下命令:
npmi-g

之后,我运行以下命令:
nggithubpages:deploy

为什么我总是收到以下信息:

The specified command github-pages:deploy is invalid. For available options, see `ng help`.

ng github页面:部署已从angular cli的最新版本中删除

要执行此操作,请执行以下操作:

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

有关详细信息,请在使用--base href和

ng build --prod --base-href "https://USERNAME.github.io/REPOSITORY/"
检查dist文件夹中是否有所有文件。 您需要转到存储库设置并启用在分支上的部署。完成后,转到命令提示符并运行

ngh
您可以在以下网址找到逐步说明: