johnpapa/pluralsight-gulp

Gulp-inject error for version 4.0.0

Closed this issue · 2 comments

It seems that the gulp-inject fails for "gulp-inject": "^4.0.0" while running the wiredep task reporting for unexpected token (syntax error related to startTag) . If I switch to "gulp-inject": "^1.1.1" works fine. Any ideas?

Same here...

path\to\folder\node_modules\gulp-inject\src\inject\index.js:127
      startTag,
              ^
SyntaxError: Unexpected token ,
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (path\to\folder\node_modules\gulp-inject\index.js:4:28)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)

I figured it out. As of gulp-inject v4.0.0, NodeJS v4 or above is required which means that you need to install NodeJS latest version. After installing it works just fine.