gruntjs / grunt-cli

Grunt's command line interface.
http://gruntjs.com/
MIT License
706 stars 248 forks source link

specify Node.js version to use #111

Closed ccorcos closed 7 years ago

ccorcos commented 7 years ago

I have Node.js 7 on my machine and it appears grunt isnt using it so I'm getting errors with ES6 syntax thats fully supported in Node.js 7. Is there any way to force grunt to use the version of Node installed on my machine?

shama commented 7 years ago

Grunt can only use the version of Node.js installed on your machine. What error are you hitting and what syntax is it?

ccorcos commented 7 years ago

Ah, touché! I guess Node.js 7 doesn't allow object spread operators... :'(