How do I install gulp 4

后端 未结 11 1138
慢半拍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:06

    My installation was a bit different.

    Running

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

    Or

    npm install 'gulpjs/gulp#4.0' --save-dev
    

    Gave me an error:

    npm ERR! code EINVALIDTAGNAME npm ERR! Invalid tag name "gulp#4.0": Tags may not have any characters that encodeURIComponent encodes.

    NB I was only having problems installing my local gulp-4 so I took a look at my last package.json installation and saw this:

    "gulp": "github:gulpjs/gulp#4.0",
    

    So my move was to install local gulp with

    npm install "github:gulpjs/gulp#4.0" --save-dev
    

    and that worked, installing local gulp 4 successfully.

    [15:45:55] CLI version 1.4.0
    [15:45:55] Local version 4.0.0-alpha.2
    

提交回复
热议问题