我使用咕嚕-誓言(https://github.com/CMTegner/grunt-vows)在以下gruntfile時拋出錯誤:grunt.js使用咕嚕,誓言
module.exports = function(grunt) {
// Project configuration.
grunt.loadNpmTasks("grunt-vows");
grunt.initConfig({
vows: {
all: {
options: {
reporter: "spec",
verbose: true,
silent: false,
colors: true,
isolate: false,
coverage: "json"
},
src: ["test/*.js"]
}
}
});
// Default task.
grunt.registerTask('default', 'vows');
};
,並得到以下錯誤,當我運行grunt
:
TypeError: Object #<Object> has no method 'options'
at Object.<anonymous> (/home/dan/playlist/node_modules/grunt-vows/tasks/vows.js:32:33)
at Object.<anonymous> (/usr/lib/node_modules/grunt/lib/grunt/task.js:109:15)
at Object.thisTask.fn (/usr/lib/node_modules/grunt/lib/grunt/task.js:58:16)
我相信,我做了一個某處出現簡單的錯誤,在gruntfile中看起來不合適?
由於提前,
丹
完全問題:)謝謝 – danwoods 2013-03-28 14:06:03