美文网首页
安装gulp4.0

安装gulp4.0

作者: 记忆是条狗 | 来源:发表于2017-05-23 18:29 被阅读0次

    前提:安装了node7.7.3+的版本,安装了git

    # Uninstall previous Gulp installation and related packages, if any
    $ npm rm gulp -g
    $ npm rm gulp-cli -g
    $ cd [your-project-dir/]
    $ npm rm gulp --save-dev
    $ npm rm gulp --save
    $ npm rm gulp --save-optional
    $ npm cache clean
    
    # Install the latest Gulp CLI tools globally
    $ npm install gulpjs/gulp-cli -g
    
    # Install Gulp 4 into your project from 4.0 GitHub branch as dev dependency
    $ npm install gulpjs/gulp#4.0 --save-dev
    
    # Check the versions installed. Make sure your versions are not lower than shown.
    $ gulp -v
    ---
    [10:48:35] CLI version 1.2.2
    [10:48:35] Local version 4.0.0-alpha.2
    
    

    相关文章

      网友评论

          本文标题:安装gulp4.0

          本文链接:https://www.haomeiwen.com/subject/ijegxxtx.html