Gulp command not found after install

前端 未结 11 1433
抹茶落季
抹茶落季 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:28

    If you want to leave your prefix intact, just export it's bin dir to your PATH variable:
    export PATH=$HOME/your-path/bin:$PATH
    I added this line to my $HOME/.profile and sourced it.

    Setting prefix to /usr/local makes you use sudo, so I like to have it in my user dir. You can check your prefix with npm prefix -g.

提交回复
热议问题