Skip to content

Instantly share code, notes, and snippets.

@pkarl
Created December 3, 2012 19:48
Show Gist options
  • Save pkarl/4197466 to your computer and use it in GitHub Desktop.
Save pkarl/4197466 to your computer and use it in GitHub Desktop.
Grunt error
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-exec');
grunt.initConfig({
exec: {
build: {
command: 'node node_modules/requirejs/bin/r.js -o require-config.js'
}
}
});
grunt.registerTask('copy-require', function() {
grunt.file.mkdir('build/js/lib');
grunt.file.copy('node_modules/requirejs/require.js', 'build/js/lib/require.js');
});
grunt.registerTask('default', 'exec copy-require');
};
{
"name": "derp"
, "version": "0.0.1"
, "private": true
, "dependencies": {
"requirejs": "latest"
, "connect": "2.7.0"
}
, "devDependencies": {
"mocha": "latest"
, "chai": "latest"
, "grunt": "latest"
, "grunt-exec": "latest"
}
, "scripts": {
"grunt": "node_modules/.bin/grunt"
}
}
({
appDir: 'app/'
, baseUrl: '/js'
, paths: {}
, dir: 'build/'
, modules: [{ name: 'main' }]
})
$ node_modules/.bin/grunt
Running "exec:build" (exec) task
<WARN> Command failed: Use --force to continue. </WARN>
Aborted due to warnings.
$ npm run-script grunt
> [email protected] grunt /Users/pkarl/Sites/backboners
> node_modules/.bin/grunt
Running "exec:build" (exec) task
<WARN> Command failed: Use --force to continue. </WARN>
Aborted due to warnings.
npm ERR! [email protected] grunt: `node_modules/.bin/grunt`
npm ERR! `sh "-c" "node_modules/.bin/grunt"` failed with 2
npm ERR!
npm ERR! Failed at the [email protected] grunt script.
npm ERR! This is most likely a problem with the derp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node_modules/.bin/grunt
npm ERR! You can get their info via:
npm ERR! npm owner ls derp
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 12.2.1
npm ERR! command "node" "/usr/local/bin/npm" "run-script" "grunt"
npm ERR! cwd /Users/pkarl/Sites/backboners
npm ERR! node -v v0.8.15
npm ERR! npm -v 1.1.66
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/pkarl/Sites/backboners/npm-debug.log
npm ERR! not ok code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment