Syntax error when I try to use Grunt
I am getting the following error when I try to use the "grunt service".
/Users/name/Documents/projectname/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.js:6755
});
SyntaxError: Unexpected end of input
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/Users/name/Documents/projectname/node_modules/grunt/node_modules/findup-sync/lib/findup-sync.js:16:9)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
Any help would be greatly appreciated. Thank!
-Dave
+3
source to share
1 answer
I had a similar problem causing the same error for me SyntaxError: Unexpected end of input
. The solution for this was to uninstall my node_modules project and re-install npm install. If you are using a Linux machine, be sure to start it like sudo npm install
, whereas in windows you want to start your command line as administrator. Hope this helps!
+2
source to share