You can avoid that problem by not using node and npm. I have used create-react-app once for a project and that was bad enough for me to stay away from the entire ecosystem.
Not realistically; that would just introduce more problems than what I would avoid.
I have better things to do with my time than try to avoid npm.
JS projects are only a small fraction of my work anyway.