Loading "gruntfile.js" tasks...ERROR
>> ReferenceError: grunt is not defined
Warning: Task "default" not found. Use --force to continue.
Aborted due to warnings.
啟動時這個錯誤
Loading "gruntfile.js" tasks...ERROR
>> ReferenceError: grunt is not defined
Warning: Task "default" not found. Use --force to continue.
Aborted due to warnings.
啟動時這個錯誤
2014-09-29
舉報
2017-06-15
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
? ? ? ? ?}
? ? }
},
版本不同了,nodemon里的參數(shù)這樣設(shè)置了
2014-09-29
懷疑是你在調(diào)用 grunt 的時候, grunt.loadNpmTasks?和?grunt.registerTask?不在 module 的 function 內(nèi)。
比如: