I am trying to install salesforce code scanner with
sf plugins install @salesforce/sfdx-scanner
but I am getting an error:
NpmError: Failed to find @salesforce/sfdx-scanner@latest in the registry
sf --version
gives:
@salesforce/cli/2.22.7 linux-x64 node-v20.14.0
If I try to update sf cli with sudo npm update --global @salesforce/cli
I get:
npm error code 1
npm error path /usr/local/lib/node_modules/@salesforce/cli
npm error command failed
npm error command sh -c node ./scripts/preinstall.js
I have the sf cli globally installed.
Any ideas?