2
Grunt有一點問題。 我已經安裝了全球咕嚕-CLI v0.1.9咕嚕v0.4.1本地安裝Grunt任務未找到
這裏是我的簡單Gruntfile.js:
'use strict';
module.exports = function(grunt) {
grunt.registerTask('hello', 'My test task.', function() {
grunt.log.writeln('Hello world');
});
}
然而,當我啓動:
grunt hello
我有以下消息:
警告:找不到任務「hello」。使用--force繼續。
有人可以告訴我是什麼問題?
這對我的作品 - 你必須有別的東西在你的環境中去的。你如何運行它? (即:當前工作目錄和位於關係中的gruntfile.js位於相同的目錄中?) – dc5