grunt not found .也不知道操作了啥 grunt 竟然不认了 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
nuc093

grunt not found .也不知道操作了啥 grunt 竟然不认了

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

    mytodo grunt
    zsh: command not found: grunt
    mytodo npm instal -g grunt

    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/npmconf requires semver@'2' but will load
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/semver,
    npm WARN unmet dependency which is version 4.3.6
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/npmconf requires uid-number@'0.0.5' but will load
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/uid-number,
    npm WARN unmet dependency which is version 0.0.6
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data requires github-url-from-username-repo@'^0.2.0' but will load
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/github-url-from-username-repo,
    npm WARN unmet dependency which is version 1.0.2
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data requires semver@'2 || 3' but will load
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/semver,
    npm WARN unmet dependency which is version 4.3.6
    npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/phonegap-build requires colors@'0.6.x' but will load

    Path to your oh-my-zsh configuration.

    ZSH=$HOME/.oh-my-zsh

    Set name of the theme to load.

    Look in ~/.oh-my-zsh/themes/

    Optionally, if you set this to "random", it'll load a random theme each

    time that oh-my-zsh is loaded.

    ZSH_THEME="robbyrussell"

    Example aliases

    alias zshcOnfig="mate ~/.zshrc"

    alias ohmyzsh="mate ~/.oh-my-zsh"

    Set to this to use case-sensitive completion

    CASE_SENSITIVE="true"

    Uncomment this to disable bi-weekly auto-update checks

    DISABLE_AUTO_UPDATE="true"

    Uncomment to change how often before auto-updates occur? (in days )

    export UPDATE_ZSH_DAYS=13

    Uncomment following line if you want to disable colors in ls

    DISABLE_LS_COLORS="true"

    Uncomment following line if you want to disable autosetting terminal title.

    DISABLE_AUTO_TITLE="true"

    Uncomment following line if you want to disable command autocorrection

    DISABLE_CORRECTION="true"

    Uncomment following line if you want red dots to be displayed while waiting for completion

    COMPLETION_WAITING_DOTS="true"

    Uncomment following line if you want to disable marking untracked files under

    VCS as dirty. This makes repository status check for large repositories much,

    much faster.

    DISABLE_UNTRACKED_FILES_DIRTY="true"

    "~/.zshrc" 81L, 2537C
    npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/colors,
    npm WARN unmet dependency which is version 0.6.0-1
    npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/connect-phonegap/node_modules/connect/node_modules/multiparty/node_modules/stream-counter requires readable-stream@'~1.1.8' but will load
    npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/connect-phonegap/node_modules/connect/node_modules/multiparty/node_modules/readable-stream,
    npm WARN unmet dependency which is version 1.1.13-1
    npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/phonegap-build/node_modules/qrcode-terminal requires colors@'*' but will load
    npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/colors,
    npm WARN unmet dependency which is version 0.6.0-1
    npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/prompt/node_modules/winston requires colors@'0.x.x' but will load
    npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/colors,
    npm WARN unmet dependency which is version 0.6.0-1
    [email protected] /usr/local/lib/node_modules/grunt
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected] ([email protected] )
    ├── [email protected]
    ├── [email protected]
    ├── [email protected] ([email protected], [email protected] )
    ├── [email protected]
    ├── [email protected] ([email protected], [email protected] )
    ├── [email protected] ([email protected], [email protected] )
    ├── [email protected] ([email protected], [email protected] )
    └── [email protected] ([email protected], [email protected], [email protected] )
    mytodo grunt
    zsh: command not found: grunt

    4 条回复    2015-09-09 13:00:37 +08:00
    nuc093
        1
    nuc093  
    OP
       2015 年 9 月 9 日
    mytodo which npm
    /usr/local/bin/npm
    mytodo vi ~/.zshrc

    export PATH=/usr/local/bin/npm:$PATH

    mytodo source ~/.zshrc
    mytodo grunt serve
    zsh: command not found: grunt
    nuc093
        2
    nuc093  
    OP
       2015 年 9 月 9 日
    OK 解决了。

    sudo npm install -g yo bower grunt-cli gulp
    aisk
        3
    aisk  
       2015 年 9 月 9 日
    npm instal -g grunt-cli
    FrankFang128
        4
    FrankFang128  
       2015 年 9 月 9 日 via Android
    快换 gulp
    grunt cli 坑了一批人
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2942 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 75ms UTC 06:42 PVG 14:42 LAX 23:42 JFK 02:42
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86