yarn-audit-fix
yarn-audit-fix copied to clipboard
-bash: yarn-audit-fix: command not found
-bash: yarn-audit-fix: command not found
Hey, @mayeaux,
Could you provide a bit more details?
npm i -g yarn-audit-fix
which yarn-audit-fix
@mayeaux, any news?
I can't remember exactly what happened, I'll be returning to the functionality where I was using yarn-audit-fix in a bit I'll let you know if I can reproduce it, thanks
I have the same issue:
npm -g yarn-audit-fix
Unknown command: "yarn-audit-fix"
To see a list of supported npm commands, run:
npm help
where yarn-audit-fix
yarn-audit-fix not found
How did I get here?
-
I ran:
yarn add yarn-audit-fix -D
-
Tried and got same error as above
-
Tried
npm_config_yes=true npx yarn-audit-fix
-
Tried again and got same error as above
@brainmaniac @mayeaux
There was a typo, sorry: npm -g yarn-audit-fix
→ npm i -g yarn-audit-fix
Anyway, I've added a post-release step to check if yaf
works as a global pkg or as npx
cmd:
https://github.com/antongolub/yarn-audit-fix/blob/master/.github/workflows/ci.yaml#L177
The results: https://github.com/antongolub/yarn-audit-fix/runs/5618010054?check_suite_focus=true
> npm i -g yarn-audit-fix@latest
# added 87 packages, and audited 88 packages in 1s
# 15 packages are looking for funding
# run `npm fund` for details
# found 0 vulnerabilities
> which yarn-audit-fix
# /opt/hostedtoolcache/node/16.14.0/x64/bin/yarn-audit-fix
> yarn-audit-fix --version
# 9.2.1
@brainmaniac @mayeaux
Could you provide a reproducible example of the issue?
- runtime: os, nodejs, yarn
- yarn-audit-fix version
- steps: ...