为了账号安全,请及时绑定邮箱和手机立即绑定

grunt Warning: Task "default" not found.

这是什么问题啊? ➜ ✗ grunt Warning: Task "default" not found. Use --force to continue. Aborted due to warnings.

module.export = function(grunt) {


    grunt.initConfig({

        watch: {

            jade: {

              files: ['views/**'],

              options: {

                livereload: true

              }

            },

            js: {

              files: ['public/js/**', 'models/**/*.js', 'schemas/**/*.js'],

              //tasks: ['jshint'],

              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: {

            target: {

                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:target']);


};


正在回答

1 回答

第一行就错了  exports  不是export

0 回复 有任何疑惑可以回复我~
#1

senqi 提问者

非常感谢!
2017-07-19 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
node建站攻略(二期)——网站升级
  • 参与学习       51963    人
  • 解答问题       408    个

帮助你深入前后端开发留下的迷惑,为进一步自学打下基础

进入课程

grunt Warning: Task "default" not found.

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信