Using Win10 Pro / VS2015 with a 'website' project (not asp.net, basic website)
When attempt to save/reload gulpfile.js I receive the error message (from Task Runner Explorer/output)
SyntaxError: Use of const in strict mode.
In the present case it is choking on 'gulp-changed'
I have looked through the answers and comments available:
- SyntaxError: Use of const in strict mode
SyntaxError: Use of const in strict mode?
- I have updated my version of node to the latest: 6.10.30
- I have cleaned the cache (npm cache clean -f)
- I have used 'which node' to determine that node is pointing to the installation of the latest install.
- "n" does not want to install on Windows (?)
In my case the environment path, $(PATH) already include the global install of node but I needed to move it ahead of the $(DevEnvDir) paths so that it would get priority.
(added after correct answer provided, thanks @baao)