久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  1. <i id='ycckL'><tr id='ycckL'><dt id='ycckL'><q id='ycckL'><span id='ycckL'><b id='ycckL'><form id='ycckL'><ins id='ycckL'></ins><ul id='ycckL'></ul><sub id='ycckL'></sub></form><legend id='ycckL'></legend><bdo id='ycckL'><pre id='ycckL'><center id='ycckL'></center></pre></bdo></b><th id='ycckL'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ycckL'><tfoot id='ycckL'></tfoot><dl id='ycckL'><fieldset id='ycckL'></fieldset></dl></div>

      • <bdo id='ycckL'></bdo><ul id='ycckL'></ul>

    1. <legend id='ycckL'><style id='ycckL'><dir id='ycckL'><q id='ycckL'></q></dir></style></legend>

      <small id='ycckL'></small><noframes id='ycckL'>

    2. <tfoot id='ycckL'></tfoot>
    3. 每次在命令行中運行 gulp 時出現斷言錯誤

      Everytime I get an Assertion error while running gulp in command line(每次在命令行中運行 gulp 時出現斷言錯誤)

      <small id='Yeurr'></small><noframes id='Yeurr'>

    4. <legend id='Yeurr'><style id='Yeurr'><dir id='Yeurr'><q id='Yeurr'></q></dir></style></legend>
      • <bdo id='Yeurr'></bdo><ul id='Yeurr'></ul>

      • <i id='Yeurr'><tr id='Yeurr'><dt id='Yeurr'><q id='Yeurr'><span id='Yeurr'><b id='Yeurr'><form id='Yeurr'><ins id='Yeurr'></ins><ul id='Yeurr'></ul><sub id='Yeurr'></sub></form><legend id='Yeurr'></legend><bdo id='Yeurr'><pre id='Yeurr'><center id='Yeurr'></center></pre></bdo></b><th id='Yeurr'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Yeurr'><tfoot id='Yeurr'></tfoot><dl id='Yeurr'><fieldset id='Yeurr'></fieldset></dl></div>
          <tbody id='Yeurr'></tbody>

      • <tfoot id='Yeurr'></tfoot>

                本文介紹了每次在命令行中運行 gulp 時出現斷言錯誤的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                我正在嘗試運行下面的命令,但不幸的是我遇到了錯誤.

                I'm trying to run the command below but unfortunately I run into an error.

                C:UsersusverDesktopgit testgitBootstrap4conFusion>gulp
                

                運行上述命令后出現斷言錯誤.我再次重新安裝了 gulp 和 npm,但得到了同樣的錯誤.我的節點版本-v10.15.0吞咽版本-CLI 版本 2.0.1本地版本 4.0.2

                I got assertion error after running the above command. I reinstalled gulp and npm once again but got the same error. My node version-v10.15.0 gulp version- CLI version 2.0.1 Local version 4.0.2

                assert.js:350
                    throw err;
                    ^
                
                AssertionError [ERR_ASSERTION]: Task function must be specified
                    at Gulp.set [as _setTask] (C:UsersusverDesktopgit testgitBootstrap4conFusion
                ode_modulesundertakerlibset-task.js:10:3)
                    at Gulp.task (C:UsersusverDesktopgit testgitBootstrap4conFusion
                ode_modulesundertakerlib	ask.js:13:8)
                    at Object.<anonymous> (C:UsersusverDesktopgit testgitBootstrap4conFusiongulpfile.js:30:6)
                    at Module._compile (internal/modules/cjs/loader.js:689:30)
                    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
                    at Module.load (internal/modules/cjs/loader.js:599:32)
                    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
                    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
                    at Module.require (internal/modules/cjs/loader.js:637:17)
                    at require (internal/modules/cjs/helpers.js:22:18)
                

                我使用 Windows 10 操作系統和 VS Code 作為編輯器.

                I m Using Windows 10 Operating System and VS Code as an editor.

                gulp.js 文件:

                gulp.js file:

                'use strict';
                
                var gulp=require('gulp'),
                    sass=require('gulp-sass'),
                    browserSync=require('browser-sync');
                gulp.task('sass',function(){
                    return gulp.src('./css/*.scss')
                    .pipe(sass().on('error',sass.logerror))
                    .pipe(gulp.dest('./css'));
                });
                
                gulp.task('sass:watch',function(){
                    gulp.watch('./css/*.scss',['sass']);
                });
                gulp.task('browser-sync',function(){
                    var files=[
                        './*.html',
                        './css/*.css',
                        './js/*.js',
                        './img/*.{png,jpg,gif}'
                    ];
                
                    browserSync.init(files,{
                        server:{
                            baseDir:'./'
                        }
                    });
                });
                
                
                gulp.task('default',['browser-sync'],function(){
                    gulp.start('sass:watch');
                });`
                

                package.json 文件

                package.json file

                {
                  "name": "confusion",
                  "version": "1.0.0",
                  "description": "This is a website for Ristorante Con Fusion",
                  "main": "index.html",
                  "scripts": {
                    "start": "npm run watch:all",
                    "test": "echo "Error: no test specified" && exit 1",
                    "lite": "lite-server",
                    "scss": "node-sass -o css/ css/",
                    "watch:scss": "onchange "css/*.scss" --npm run scss",
                    "watch:all": "parallelshell "npm run watch:scss" 'npm run lite'",
                    "clean": "rimraf dist",
                    "copyfonts": "copyfiles -f node_modules/font-awesome/fonts/* dist/fonts",
                    "imagemin": "imagemin img/* -o dist/img",
                    "usemin": "usemin contactus.html -d dist --htmlmin -o dist/contactus.html && usemin aboutus.html -d dist --htmlmin -o dist/aboutus.html && usemin index.html -d dist --htmlmin -o dist/index.html",
                    "build": "npm run clean && npm run copyfonts && npm run imagemin && npm run usemin"
                  },
                  "author": "",
                  "license": "ISC",
                  "devDependencies": {
                    "browser-sync": "^2.26.7",
                    "cssmin": "^0.4.3",
                    "del": "^3.0.0",
                    "grunt-browser-sync": "^2.2.0",
                    "grunt-cli": "^1.2.0",
                    "grunt-contrib-clean": "^1.1.0",
                    "grunt-contrib-concat": "^1.0.1",
                    "grunt-contrib-copy": "^1.0.0",
                    "grunt-contrib-cssmin": "^2.2.1",
                    "grunt-contrib-htmlmin": "^2.4.0",
                    "grunt-contrib-imagemin": "^3.1.0",
                    "grunt-contrib-uglify": "^3.3.0",
                    "grunt-contrib-watch": "^1.1.0",
                    "grunt-filerev": "^2.3.1",
                    "grunt-sass": "^2.1.0",
                    "grunt-usemin": "^3.1.1",
                    "gulp": "^4.0.2",
                    "gulp-sass": "^3.1.0",
                    "htmlmin": "0.0.7",
                    "jit-grunt": "^0.10.0",
                    "lite-server": "^2.3.0",
                    "node-sass": "^4.12.0",
                    "onchange": "^6.0.0",
                    "parallelshell": "^3.0.2",
                    "rimraf": "^2.6.2",
                    "time-grunt": "^1.4.0",
                    "uglifyjs": "^2.4.11",
                    "usemin-cli": "^0.5.1"
                  },
                  "dependencies": {
                    "bootstrap": "^4.3.1",
                    "bootstrap-social": "^5.1.1",
                    "font-awesome": "^4.7.0",
                    "grunt": "^1.0.4",
                    "jquery": "^3.4.1",
                    "popper.js": "^1.12.9"
                  }
                }
                

                我已經包含 gulp.js 和 package.json 文件.

                I've include gulp.js and package.json file.

                推薦答案

                您在 gulp4 文件中使用 gulp3 語法.

                You are using gulp3 syntax in a gulp4 file.

                搜索你的錯誤信息Task function must be specified,你會得到很多點擊.

                Search your error message Task function must be specified and you will get lots of hits.

                更改這些行:

                gulp.task('sass:watch',function(){
                    // gulp.watch('./css/*.scss',['sass']);
                
                    gulp.watch('./css/*.scss', gulp.series('sass'));
                    // gulp.watch('./css/*.scss', 'sass');    // should work too
                });
                

                // gulp.task('default',['browser-sync'],function(){
                    //gulp.start('sass:watch');
                // });
                

                gulp.task('default', gulp.series('browser-sync', 'sass:watch'));
                

                看起來您正在學習舊的 gulp3 教程,但請尋找一些從 gulp3 到 gulp4 的遷移指南.

                It looks like you were working off of an old gulp3 tutorial but look for some migration guides from gulp3 to gulp4 instead.

                這篇關于每次在命令行中運行 gulp 時出現斷言錯誤的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運算符上的意外令牌)
                Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務)
                Stylesheet not loaded because of MIME-type(由于 MIME 類型而未加載樣式表)
                Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)

                1. <tfoot id='SPA7Z'></tfoot>

                  1. <small id='SPA7Z'></small><noframes id='SPA7Z'>

                  2. <i id='SPA7Z'><tr id='SPA7Z'><dt id='SPA7Z'><q id='SPA7Z'><span id='SPA7Z'><b id='SPA7Z'><form id='SPA7Z'><ins id='SPA7Z'></ins><ul id='SPA7Z'></ul><sub id='SPA7Z'></sub></form><legend id='SPA7Z'></legend><bdo id='SPA7Z'><pre id='SPA7Z'><center id='SPA7Z'></center></pre></bdo></b><th id='SPA7Z'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='SPA7Z'><tfoot id='SPA7Z'></tfoot><dl id='SPA7Z'><fieldset id='SPA7Z'></fieldset></dl></div>
                        <tbody id='SPA7Z'></tbody>

                          <bdo id='SPA7Z'></bdo><ul id='SPA7Z'></ul>
                          <legend id='SPA7Z'><style id='SPA7Z'><dir id='SPA7Z'><q id='SPA7Z'></q></dir></style></legend>
                          主站蜘蛛池模板: 精品国产一区二区三区久久 | 久久毛片 | 日韩精品在线免费观看视频 | 色网站视频 | 美人の美乳で授乳プレイ | 男女视频在线免费观看 | 亚洲日韩中文字幕一区 | 国产日韩精品一区 | 九九久久精品 | 亚洲v日韩v综合v精品v | 亚洲成人三级 | www.日韩 | 在线观看日韩 | 男人的天堂久久 | 欧美一级黄色片在线观看 | 中文字幕 国产 | 一区二区免费视频 | 国产高清免费视频 | 操人视频在线观看 | 成人在线精品视频 | 国产精品爱久久久久久久 | 欧美视频在线观看 | 国产欧美精品区一区二区三区 | 日韩一区二区福利视频 | 91精品国产91久久综合桃花 | 午夜精品视频一区 | 久久艹免费视频 | 亚洲国产精品一区二区三区 | 久久久久久九九九九九九 | 91一区 | 精品伊人 | 国产综合网站 | 亚洲国产高清免费 | 成人国产精品久久久 | 国产精品久久久久久久久久久久久久 | 欧美激情综合五月色丁香小说 | www.色综合| 日韩电影中文字幕 | 99riav国产一区二区三区 | 国产91精品久久久久久久网曝门 | 蜜桃在线视频 |