亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Grunt 啟動后報錯Warning: Task "default" not found.實在找不到

Grunt 啟動后報錯Warning: Task "default" not found.實在找不到

眼眸繁星 2019-03-13 18:15:01
今天學習grunt,在配置好之后啟動出現一下問題:Loading "gruntfile.js" tasks...ERROR>> SyntaxError: Unexpected token .Warning: Task "default" not found. Use --force to continue.Aborted due to warnings.我的gruntfile.js'use strict'module.exports = function(grunt){    grunt.initConfig({        // watch的配置        watch : {            jade :{                files : ['views/**'],                options : {                    livereload : true                }            },            js : {                files : ['page/**'],                options : {                    livereload : true                }            }        },        nodemon : {            dev : {                script : 'app.js',                options : {                    args : [],                    nodeArgs : ['--debug'],                    ignore : ['README.md', 'node_modules/**', '.DS_Store'],                    ext : 'js',                    watch : [./],                    delay : 1000,                    env : {                        PORT : '3000'                    },                    cwd : __dirname                }            }        },        concurrent : {            tasks : ['nodemon','watch'],            options : {                logConcurrentOutput : true            }        }    });     grunt.loadNpmTasks('grunt-contrib-watch');    grunt.loadNpmTasks('grunt-nodemon');    grunt.loadNpmTasks('grunt-concurrent');        grunt.option('force', true);    grunt.registerTask('default', ['concurrent']);}package.json{  "name": "myblog",  "version": "1.0.0",  "description": "",  "main": "app.js",  "dependencies": {    "bootstrap": "^3.3.7",    "express": "^4.16.3",    "grunt": "^1.0.2",    "grunt-contrib-watch": "^1.0.1",    "jade": "^1.11.0",    "serve-static": "^1.13.2",    "wangeditor": "^3.1.1"  },  "devDependencies": {    "grunt-concurrent": "^2.3.1",    "grunt-nodemon": "^0.4.2"  },格式括號等問題我都排查了好幾遍,然后里面運用到的3個組件都分別去查看了相關文檔,也在Stack Overflow查了相關的問題,但是那些解答都非常私人化.哪位大大可以幫忙排查一下.
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 883 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號