I was working on my theme last night and everything seemed to be working fine. This morning I ran gulp and it started throwing this error:
/home/behemothdan/webapps/sage/wp-content/themes/behemoth/node_modules/asset-builder/node_modules/main-bower-files/lib/index.js:79
throw e;
^
SyntaxError: Unexpected token }
at Object.parse (native)
at Object.PackageCollection.collectPackages (/home/behemothdan/webapps/sage/wp-content/themes/behemoth/node_modules/asset-builder/node_modules/main-bower-files/lib/package_collection.js:72:30)
at Object.PackageCollection (/home/behemothdan/webapps/sage/wp-content/themes/behemoth/node_modules/asset-builder/node_modules/main-bower-files/lib/package_collection.js:29:10)
at module.exports (/home/behemothdan/webapps/sage/wp-content/themes/behemoth/node_modules/asset-builder/node_modules/main-bower-files/lib/index.js:66:22)
at new module.exports (/home/behemothdan/webapps/sage/wp-content/themes/behemoth/node_modules/asset-builder/lib/Manifest.js:29:15)
at module.exports (/home/behemothdan/webapps/sage/wp-content/themes/behemoth/node_modules/asset-builder/index.js:17:10)
at Object.<anonymous> (/home/behemothdan/webapps/sage/wp-content/themes/behemoth/gulpfile.js:11:40)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
I tried a few things, including removing the node_modules directory and doing an npm install. I haven’t modified any of the files that it is showing in the error, and line 11 of my gulpfile is unmodified as well.
var manifest = require('asset-builder')('./assets/manifest.json');
In most cases the error of it just having an unexpected } would be simple enough to fix, but I haven’t modified those files. Any suggestions or any brain-dead things I am overlooking? Thanks.