gulp command not found

后端 未结 8 1384
萌比男神i
萌比男神i 2020-12-07 02:19

Windows 10 pro x64

I ran the following commands

npm install --global gulp-cli
npm init

Then I changed directory to my project:

8条回答
  •  -上瘾入骨i
    2020-12-07 03:00

    So I ran into this issue as well and none of the top answers were helping. Everything was installed, uninstalled, restarted, installed globally, etc., etc.... and still got the gulp command not found error. So I opened the package.json file and put in the following after the name field:

      "scripts": {
    "start": "gulp"
    },
    

    And then I ran npm start in git bash.

    Everything ran correctly, I got my dev view in my browser @ localhost and all was right with the world.

    Hope this helps!

提交回复
热议问题