I also just ran in to this problem all of a sudden. I didn’t see the jshintrc file in the root any longer so I grabbed the files the jslint’s Github under examples and tried to use that but received the following error:
[L1:C1] W097: Use the function form of “use strict”.
‘use strict’;
Linting Gruntfile.js …ERROR
[L4:C3] W015: Expected ‘grunt’ to have an indentation at 5 instead at 3.
grunt.initConfig({
Linting Gruntfile.js …ERROR
[L5:C5] W015: Expected ‘jshint’ to have an indentation at 9 instead at 5.
jshint: {
Linting Gruntfile.js …ERROR
[L6:C7] W015: Expected ‘options’ to have an indentation at 13 instead at 7.
options: {
Linting Gruntfile.js …ERROR
[L7:C9] W015: Expected ‘jshintrc’ to have an indentation at 17 instead at 9.
jshintrc: '.jshintrc’
Linting Gruntfile.js …ERROR
[L8:C7] W015: Expected ‘}’ to have an indentation at 13 instead at 7.
},
Linting Gruntfile.js …ERROR
[L9:C7] W015: Expected ‘all’ to have an indentation at 13 instead at 7.
all: [
Linting Gruntfile.js …ERROR
[L10:C9] W015: Expected ‘Gruntfile.js’ to have an indentation at 17 instead at 9.
‘Gruntfile.js’,
Linting Gruntfile.js …ERROR
I’m too getting a similar error with a brand new roots-master file set.
npm install runs well except for
35860 info install roots@7.0.1
35861 info postinstall roots@7.0.1
35862 verbose unsafe-perm in lifecycle true
35863 info roots@7.0.1 Failed to exec postinstall script
35864 error roots@7.0.1 postinstall: `node node_modules/bower/bin/bower install && grunt dev`
35864 error Exit status 6
35865 error Failed at the roots@7.0.1 postinstall script.
35865 error This is most likely a problem with the roots package,
35865 error not with npm itself.
35865 error Tell the author that this fails on your system:
35865 error node node_modules/bower/bin/bower install && grunt dev
35865 error You can get their info via:
35865 error npm owner ls roots
35865 error There is likely additional logging output above.
35866 error System Darwin 13.3.0
35867 error command "node" "/usr/local/bin/npm" "install"
35868 error cwd /Users/jynk/Projects/500_2AM/web/2amweb2014/wp-content/themes/2am-master
35869 error node -v v0.10.26
35870 error npm -v 1.4.3
35871 error code ELIFECYCLE
35872 verbose exit [ 1, true ]
I tried adding a .jshintrc file manually but no luck.