V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
nuc093
V2EX  ›  Node.js

如何在本地运行 ui-router-sample

  •  
  •   nuc093 · 2015 年 9 月 27 日 · 4071 次点击
    这是一个创建于 3766 天前的主题,其中的信息可能已经有所发展或是发生改变。

    为了更好的理解 ui-router 需要在本地从头在敲一遍,如何在本地运行?

    http://angular-ui.github.io/ui-router/sample/#/

    ➜ ui-router git:(master) pwd
    /Users/qk/github/ui-router
    ➜ ui-router git:(master) grunt serve
    Warning: Task "serve" not found. Use --force to continue.

    Aborted due to warnings.

    4 条回复    2015-09-28 09:40:15 +08:00
    fjs312
        1
    fjs312  
       2015 年 9 月 28 日
    安装步骤来:
    1 npm install
    2 grunt build
    3 grunt watch
    就可以了
    fjs312
        2
    fjs312  
       2015 年 9 月 28 日
    https://github.com/angular-ui/ui-router/issues/1815 抱歉怕你不好理解,请看官方文档,(@nateabele)作者自己说没有加入 serve 命令!直接 grunt connect:sample 就行了
    nuc093
        3
    nuc093  
    OP
       2015 年 9 月 28 日
    @nuc093 多谢
    nuc093
        4
    nuc093  
    OP
       2015 年 9 月 28 日
    @fjs312 多谢
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   4638 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 01:09 · PVG 09:09 · LAX 17:09 · JFK 20:09
    ♥ Do have faith in what you're doing.