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

SyntaxError: Unexpected end of JSON input #347

Open
Tatsh opened this issue Nov 17, 2024 · 0 comments
Open

SyntaxError: Unexpected end of JSON input #347

Tatsh opened this issue Nov 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Tatsh
Copy link

Tatsh commented Nov 17, 2024

I am using Yarn 4.5.0 and here is the output:

 $ yarn yarn-audit-fix 
Resolve bins
Runtime digest

  isMonorepo false
  bins 
    yarn yarn
    npm npm
  
  versions 
    node v22.10.0
    npm 10.9.0
    yarn 4.5.0
    yaf 10.1.0
    yafLatest 10.1.0
  
  temp /tmp/tempy-43321eb8d549d151190d8b1b6a48a16dLcQP4a
  cwd /home/tatsh/dev/misc-scripts
  flags 
    flow patch
    npm-path system
  

Verifying package structure...
Preparing temp assets...
Patching yarn.lock with audit data...
invoke yarn npm audit --all --json --recursive
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Be (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:407)
    at ie (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:375)
    at Object.qe [as _audit] (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:1568)
    at le (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:1672)
    at ye (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:4177)
    at Te (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:5374)
    at Function.he [as sync] (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:5473)
    at file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:7692
    at ModuleJob.run (node:internal/modules/esm/module_job:268:25)
Failure!
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Be (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:407)
    at ie (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:375)
    at Object.qe [as _audit] (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:1568)
    at le (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:1672)
    at ye (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:4177)
    at Te (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:5374)
    at Function.he [as sync] (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:5473)
    at file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:7692
    at ModuleJob.run (node:internal/modules/esm/module_job:268:25)
undefined:1


SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Be (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:407)
    at ie (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:375)
    at Object.qe [as _audit] (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:1568)
    at le (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:1672)
    at ye (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:4177)
    at Te (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:5374)
    at Function.he [as sync] (file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:5473)
    at file:///home/tatsh/dev/misc-scripts/node_modules/yarn-audit-fix/target/esm/cli.mjs:10:7692
    at ModuleJob.run (node:internal/modules/esm/module_job:268:25)

Node.js v22.10.0
@antongolub antongolub added the bug Something isn't working label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants