How to npm audit global packages

It’s good to keep them up-to-date.

That’s not really auditing, but with few as possible global packages, this should be fine enough.

there is npm-check-updates or alternatively npm-check

npm install -g npm-check-updates

check outdated global packages:

ncu -g        

OR

as recommended by @pldg via npx

npx npm-check-updates -g

OR

as recommended by @wheredidthatnamecomefrom

npx npm-global-audit

this is a script running with yarn. it does a temporary copy of your current global packages. see more on their github.

this the npm way as recommended by @Henke

npx npm-global-audit --auditor npm 

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)