Just wondering. How many of us can honestly say they never imported a node module / cloned a github repo / followed some console code from a random website that seems to do exactly what you need but you don’t quite understand how it works, etc without having done a full code review (or another way to make sure it was safe).
Especially when sites like homebrew teach us that it’s completely rational to ask a user to paste this into their console:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(and as I recall, it used to actually pipe the output of curl to sudo)
If anyone claims so it means he/she either lie or hasn’t written any working software/hasn’t used computer beyond browsing the internet 
However it does not matter that much whether somebody installed/executed untrusted code, what matters most is where people actually do such stuff. For sure it’s not very wise to simply copy-paste ANY random one-liner, use any random code on your main machine or simply do dev work on your main machine. You do have control over where you actually install untrusted stuff and you can limit the impact in case of infection. I always recommend working in isolated environments like virtual machines - VirtualBox/Vmware/Parallels. I do it for years and even though it’s not a silver bullet, as there are still Xen, VMWare etc. exploits for those, in my opinion it is a reasonable trade-off and it gives enough isolation and does not impact the usability that much - if you got enough disk space, RAM and CPU and got used to it a bit 
I fully agree that this is how you should be doing things (I would like to add Docker to the list as a less-overhead option). And I know I should do things that way… 
NVMe USBC external drives 1TB or sth - there are many on sale right now, if you lack disk space it should work pretty well. as VMs can take a lot of space
especially when you use snapshots etc.