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

Broken package.json causes pnpm to exit without any message. #3705

Closed
hyrious opened this issue Aug 24, 2021 · 0 comments · Fixed by #3722
Closed

Broken package.json causes pnpm to exit without any message. #3705

hyrious opened this issue Aug 24, 2021 · 0 comments · Fixed by #3722
Assignees
Milestone

Comments

@hyrious
Copy link

hyrious commented Aug 24, 2021

pnpm version: 6.14.3

Code to reproduce the issue:

mkdir test && cd test
touch package.json       # note that empty file is invalid json
pnpm i                   # just exit with no output

echo "{}" > package.json # make it valid
pnpm i
Already up-to-date 	     # correct output

Expected behavior:

It should at least print out "invalid json" message.

Actual behavior:

Exit with no output. But the error code is 1.

Additional information:

  • node -v prints: v16.6.2
  • Windows, macOS, or Linux?: MacOS 11.5.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants