davityavryan / yarn-audit-html

Generate a HTML report for Yarn Audit
MIT License
29 stars 13 forks source link

Error on Windows 11 #151

Open marksy opened 4 months ago

marksy commented 4 months ago

When running the command yarn dlx yarn-audit-html on Windows 11, I get the following error message:

Checking audit logs...
file:///C:/Users/MARKCH~1/AppData/Local/Temp/xfs-e8e00e66/dlx-17276/node_modules
/yarn-audit-html/lib/cli.js:53
    const yarnMajorVersion = Number.parseInt(stdout.toString());
                                                    ^

TypeError: Cannot read properties of null (reading 'toString')
    at run (file:///C:/Users/MARKCH~1/AppData/Local/Temp/xfs-e8e00e66/dlx-17276/
node_modules/yarn-audit-html/lib/cli.js:53:53)
    at file:///C:/Users/MARKCH~1/AppData/Local/Temp/xfs-e8e00e66/dlx-17276/node_
modules/yarn-audit-html/lib/cli.js:114:5
    at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:336:24)
    at async loadESM (node:internal/process/esm_loader:34:7)
    at async handleMainPromise (node:internal/modules/run_main:106:12)
Software Version
OS Windows 11
Node 18.19.1
Yarn 3.6.4
yarn-audit-html 7.3.1