Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERR Unexpected end of JSON input #171

Open
emahuni opened this issue Oct 26, 2021 · 6 comments
Open

ERR Unexpected end of JSON input #171

emahuni opened this issue Oct 26, 2021 · 6 comments

Comments

@emahuni
Copy link

emahuni commented Oct 26, 2021

yarn install-peerdeps @em/app-extension-em-qui
install-peerdeps v3.0.3
It seems as if you are using Yarn. Would you like to use Yarn for the installation? (y/n) y
ERR Unexpected end of JSON input

Then it goes on to throw that error. My hunch, I have not checked this, is that it's using the scope @ as a version token since it expects it. Even if I put the version at the end eg: yarn install-peerdeps @em/[email protected], it still throws the same error.

The package with the peerDependencies is fine, it installs well without any issues and cries for unmet peer deps as usual.

@ljharb
Copy link
Collaborator

ljharb commented Oct 26, 2021

Since this package isn't public, I can't check its peerDependencies - do you have something atypical in there, like a git dep, or an uncommon protocol?

@CWSites
Copy link

CWSites commented Oct 27, 2021

I am having the same issue

install-peerdeps @cypress/webpack-preprocessor
install-peerdeps v3.0.3
It seems as if you are using Yarn. Would you like to use Yarn for the installation? (y/n) y
ERR Unexpected token { in JSON at position 95

@ljharb
Copy link
Collaborator

ljharb commented Oct 27, 2021

indeed https://unpkg.com/browse/@cypress/[email protected]/package.json looks fine, so this seems like a bug

@watkins-tim
Copy link

+1 having the same bug
ERR Unexpected end of JSON input

@JonScottLee
Copy link

Same bug here.

@kristinaBc3
Copy link

+1 having the same bug
ERR Unexpected end of JSON input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants