How do I install gulp 4

后端 未结 11 1127
慢半拍i
慢半拍i 2020-12-30 18:32

I\'ve been using gulp-watch. The current version of gulp-watch relies on the call gulp.parrallel. This call is only available from gulp 4.

However gulp 4 is not avai

相关标签:
11条回答
  • 2020-12-30 19:17

    As of December 28th 2018, the following command should work perfectly fine in installing version 4 locally.

    npm i -D gulp
    
    0 讨论(0)
  • 2020-12-30 19:21

    I solved the issue by running:

    which gulp
    
    rm -rf /usr/local/bin/gulp
    
    npm i -g gulp
    
    0 讨论(0)
  • 2020-12-30 19:23
    npm install gulpjs/gulp.git#4.0 --save-dev
    
    0 讨论(0)
  • 2020-12-30 19:26

    to install gulp-4, CLI version has to be 1.2.2 which will support gulp 4.0

    to install gulp-cli 1.2.2 run sudo npm install gulp-cli@1.2.2 -g

    and to install gulp 4.0 run npm install 'gulpjs/gulp.git#4.0' --save-dev

    when you run gulp -v command

    you should get

    [11:38:36] CLI version 1.2.2

    [11:38:36] Local version 4.0.0-alpha.2

    similar issue on GitHub

    0 讨论(0)
  • 2020-12-30 19:27

    Gulp has removed the 4.0 branch from their GitHub repository, so the previous way of installing using npm install gulpjs/gulp.git#4.0 --save-dev no longer works.

    They state in their README that the correct way to install gulp 4.0 is to run the command:

    npm install gulp@next

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