gruntjs - 'module' is undefined in grunt javascript -
i want integrate grunt on java script project. have installed npm, grunt , all.
i have created package.json file , gruntfile.js grunt.
but when run "grunt" command getting error 'module' undefined.
gruntfile.js
module.exports = function(grunt) { grunt.initconfig({ pkg: grunt.file.readjson('package.json') }); grunt.registertask('default', []); };
package.json
{ "name": "example", "version": "0.0.1", "private": true, "devdependencies": { "grunt": "latest", "grunt-cli": "^0.1.13" } }
i had problem found making sure have correctly named grunt file gruntfile.js
fixed problem, silly can overlooked.
Comments
Post a Comment