Gulp fails with message: object expected

前端 未结 2 1840
-上瘾入骨i
-上瘾入骨i 2021-02-05 10:11

I\'m trying to use gulp on w7. gruntjs works .. node works ... If i start gulp without gulp file, it runs fine .. saying \'no gulpfile found\'

gulp -v gives: cli versio

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-05 10:28

    Here are steps I used to solve that issue:

    1. if your tasks file is gulp.js, rename it to gulpfile.js
    2. Install gulp globally > npm install -g gulp
    3. Test installation > gulp -v

    You are good if you can see the version number of your gulp task runner!

提交回复
热议问题