by tao_oat · 5y ago · 0 comments
> When installing an untrusted package, run `npm install` or `yarn add` with the `--ignore-scripts flag`. If, like me, you tend to forget this, you can set npm/yarn to never run scripts with `{npm,yarn} config set ignore-scripts true`.
This disables install scripts, which is a primary attack vector for malware on npm. It also breaks some packages, though, but I've had this setting on for a while with no major problems.
Node apps should be developed in isolated containers or VMs.
We need peer review of every update, imo.
Starting to think checking node_modules into an app repo, so you get update diffs, is sane.