question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while parsing JSON after new installation of Laravel / stand-alone.

See original GitHub issue
  • Laravel Mix Version: 0.11.4
  • Node Version: v7.3.0
  • NPM Version: 4.5
  • OS: macOS Sierra

Description:

Getting this error for a couple of days now when trying to set up a fresh Laravel project. Already tried to remove node_modules and reinstall, but does not work. Also tried to use it outside of Laravel but it’s giving me the same error.

Syntax Error: Error while parsing JSON - Unexpected end of JSON input
    at JSON.parse (<anonymous>)

Screenshot link: https://www.dropbox.com/s/gq5nkg60kqqg3af/Fullscreen_10_05_2017__14_43.png?dl=0

Steps To Reproduce:

  1. Install new Laravel project (laravel new project-name)
  2. Run: npm install / yarn
  3. Run: npm run dev / yarn dev

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
thmsbkkrcommented, May 11, 2017

Removed node and npm, did a system check and installed it again. It’s working again! Should of tried that sooner …

Thank you!

0reactions
ruchernchongcommented, May 11, 2017

Glad that it worked for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while parsing JSON after new installation of Laravel ...
Getting this error for a couple of days now when trying to set up a fresh Laravel project. Already tried to remove node_modules...
Read more >
Unexpected end of JSON input while parsing - Stack Overflow
I've tried to delete node_packages, npm cache clean --force and then npm install but without the expected result. I've also tried with the ......
Read more >
Package Development - The PHP Framework For Web Artisans
Some packages are stand-alone, meaning they work with any PHP framework. ... packages may be used with Laravel by requiring them in your...
Read more >
Installation | Laravel Mix Documentation
Begin by installing Laravel Mix through NPM or Yarn. ... Next, create a Mix configuration file within the root of your new project....
Read more >
Web Application Manifest - W3C
Let scope be the result of parsing json ["scope"] with manifest URL as the base URL. If scope is failure, return. From scope...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found