Gulp command not found after install

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

    I got this working on Win10 using a combination of the answers from above and elsewhere. Posting here for others and future me.

    I followed the instructions from here: https://gulpjs.com/docs/en/getting-started/quick-start but on the last step after typing gulp --version I got the message -bash: gulp: command not found

    To fix this:

    1. I added %AppData%\npm to my Path environment variable
    2. Closed all gitbash (cmd, powershell, etc...) and restarted gitbash.
    3. Then gulp --version worked

    Also, found the below for reasons why not to install gulp globally and how to remove it (not sure if this is advisable though):

    what does gulp-"cli" stands for?

    How to uninstall Gulp CLI from NPM globally?

提交回复
热议问题