Gulp command not found after install

前端 未结 11 1522
抹茶落季
抹茶落季 2021-01-30 01:54

I installed gulp(globally) and it looks like it worked because it ran this code:

├── tildify@0.2.0
├── interpret@0.3.5
├── pretty-hrtime@0.2.1
├── deprecated@0.0         


        
11条回答
  •  半阙折子戏
    2021-01-30 02:32

    If you're using tcsh (which is my default shell on Mac OS X), you probably just need to type rehash into the shell just after the install completes:

    npm install -g gulp
    

    followed immediately by:

    rehash
    

    Otherwise, if this is your very first time installing gulp, your shell may not recognize that there's a new executable installed -- so you either need to start a new shell, or type rehash in the current shell.

    (This is basically a one-time thing for each command you install globally.)

提交回复
热议问题