I'm trying to setup a simple gruntjs task using requirejs on Windows 8, but when I run it keeps producing the follow command line error.
package.json:
{
"name": "my-app",
"version": "0.0.1",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-requirejs": "~0.4.1"
}
}
Gruntfile.js: module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
requirejs: {
compile: {
options: {
appDir: "../",
dir: "../../build",
fileExclusionRegExp: /^(r|build)\.js$/,
mainConfigFile: "js/main.js",
removeCombined: true
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.registerTask('default', ['requirejs']);
};
I used npm install
in the directory, then it installed all the dependencies. Any thoughts on how to fix this?