securitynpmdependenciesyarnpkgaudit

is there a yarn alternative for npm audit?


need pinned resolution feature of yarn, but also want to audit with npm audit? Is there a yarn alternative to npm audit? Or, alternately, will pinning resolutions of dependencies of dependencies work in npm?


Solution

  • yarn audit / yarn install --audit has been available since yarn@1.12.0

    https://github.com/yarnpkg/yarn/releases/tag/v1.12.0

    Unfortunately no --fix option yet, but as workaround you can use https://www.npmjs.com/package/yarn-audit-fix