我正在尝试通过Angular 2 Mobile Toolkit
(https://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
我缺少什么?这个工作只与其他一些角度版本?
答案 0 :(得分:5)
已删除angular-cli --mobile标志,并正在设计新的解决方案。
当Angular-Cli不支持--mobile标志时,mobile-kit repo中的自述文件在angular-cli生成的描述中不正确。
请参阅此Github问题: