Gulp遇到的问题之一
Gulp安装版本问题
出现的问题
D:\test\sassWebsite>gulp
[15:21:51] Using gulpfile D:\test\sassWebsite\gulpfile.js
[15:21:51] Starting ‘default’…
[15:21:51] ‘default’ errored after 5.26 ms
[15:21:51] TypeError: gulp.hasTask is not a function
at D:\test\sassWebsite\node_modules\run-sequence\index.js:23:22
at Array.forEach ()
at verifyTaskSets (D:\test\sassWebsite\node_modules\run-sequence\index.js:17:11)
at D:\test\sassWebsite\node_modules\run-sequence\index.js:36:4
at Array.forEach ()
at verifyTaskSets (D:\test\sassWebsite\node_modules\run-sequence\index.js:17:11)
at runSequence (D:\test\sassWebsite\node_modules\run-sequence\index.js:130:2)
at D:\test\sassWebsite\gulpfile.js:11:10
at taskWrapper (D:\test\sassWebsite\node_modules\undertaker\lib\set-task.js:13:15)
at bound (domain.js:395:14)
- 查看gulp的安装版本,其中本地的版本为4.0.0