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

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -