1

It was fine before, after my computer got BSOD when doing gulp, now the gulp version. I have tried to remove node_modules and do npm install but the error still there, thanks.

D:\laravel>gulp
[09:30:55] Using gulpfile D:\laravel\gulpfile.js
[09:30:55] Starting 'all'...
[09:30:55] Starting 'styles'...
[09:30:55] Finished 'styles' after 323 ms
[09:30:55] Starting 'scripts'...
[09:30:55] Finished 'scripts' after 65 ms
[09:30:55] Starting 'version'...
[09:30:55] 'version' errored after 920 μs
[09:30:55] SyntaxError: Unexpected token   in JSON at position 0
at Object.parse (native)
at VersionTask.deleteManifestFiles (D:\laravel\node_modules\laravel-elixir\dist\tasks\VersionTask.js:113:29)
at VersionTask.gulpTask (D:\laravel\node_modules\laravel-elixir\dist\tasks\VersionTask.js:71:18)
at VersionTask.run (D:\laravel\node_modules\laravel-elixir\dist\tasks\Task.js:138:31)
at Gulp.<anonymous> (D:\laravel\node_modules\laravel-elixir\dist\tasks\GulpBuilder.js:65:67)
at module.exports (D:\laravel\node_modules\orchestrator\lib\runTask.js:34:7)
at Gulp.Orchestrator._runTask (D:\laravel\node_modules\orchestrator\index.js:273:3)
at Gulp.Orchestrator._runStep (D:\laravel\node_modules\orchestrator\index.js:214:10)
at Gulp.Orchestrator.start (D:\laravel\node_modules\orchestrator\index.js:134:8)
at runNextSet (D:\laravel\node_modules\run-sequence\index.js:86:16)
[09:30:55] 'all' errored after 395 ms
[09:30:55] SyntaxError in plugin 'run-sequence(version)'
Message:
Unexpected token   in JSON at position 0
Stack:
SyntaxError: Unexpected token   in JSON at position 0
at Object.parse (native)
at VersionTask.deleteManifestFiles (D:\laravel\node_modules\laravel-elixir\dist\tasks\VersionTask.js:113:29)
at VersionTask.gulpTask (D:\laravel\node_modules\laravel-elixir\dist\tasks\VersionTask.js:71:18)
at VersionTask.run (D:\laravel\node_modules\laravel-elixir\dist\tasks\Task.js:138:31)
at Gulp.<anonymous> (D:\laravel\node_modules\laravel-elixir\dist\tasks\GulpBuilder.js:65:67)
at module.exports (D:\laravel\node_modules\orchestrator\lib\runTask.js:34:7)
at Gulp.Orchestrator._runTask (D:\laravel\node_modules\orchestrator\index.js:273:3)
at Gulp.Orchestrator._runStep (D:\laravel\node_modules\orchestrator\index.js:214:10)
at Gulp.Orchestrator.start (D:\laravel\node_modules\orchestrator\index.js:134:8)
at runNextSet (D:\laravel\node_modules\run-sequence\index.js:86:16)
1
  • Please note that elixir is a programming language, please be careful with tags. I have changed it to be laravel-elixir. Commented Jan 22, 2017 at 8:54

1 Answer 1

12

To fix this issue, just delete your public/build folder and then run gulp again. I faced this issue several times and everytime my issue is fixed by deleting the build folder.

Hope this will help.

Sign up to request clarification or add additional context in comments.

1 Comment

Legend! I've spent 2hours on this. Deleting the build folder fixed the issue

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.