Gulp fails with message: object expected

前端 未结 2 1839
-上瘾入骨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!

    0 讨论(0)
  • 2021-02-05 10:38

    If you're getting a Microsoft JScript runtime error it isn't running in node but rather in Windows Scripting Host. Ensure Node.exe is in your PATH.

    0 讨论(0)
提交回复
热议问题