Angular 2移动工具包 - 移动标志不起作用

时间:2017-05-09 14:08:16

标签: angular mobile

我正在尝试通过Angular 2 Mobile Toolkithttps://mobile.angular.io/)创建新的移动应用。

当我输入:ng new hello-mobile --mobile时,我收到此错误:

`The option '--mobile' is not registered with the new command. 
Run 'ng new --help' for a list of supported options.

ng new --help我看不到mobile的任何内容。

以下是我的ng -v结果:

@angular/cli: 1.0.2
node: 6.10.1
os: win32 x64

我缺少什么?这个工作只与其他一些角度版本?

1 个答案:

答案 0 :(得分:5)

已删除angular-cli --mobile标志,并正在设计新的解决方案。

当Angular-Cli不支持--mobile标志时,mobile-kit repo中的自述文件在angular-cli生成的描述中不正确。

请参阅此Github问题:

https://github.com/angular/mobile-toolkit/issues/138

https://github.com/angular/angular-cli/issues/2228