as development system, I use
- Windows or Debian GNU/Linux as host machine (can be really anything)
- Oracle VirtualBox to contain the dev images
- Debian Stretch amd64 with LXDE as a virtual guest (I have a fresh install with Geany and MySQL Workbench which I clone to do new stuff; each guest should have 2 vCPUs, 2-4 GB RAM, 16 GB disk; guest connected using NAT, mapped to localhost:8080)
- Install ERPNext from the Easy Install: https://github.com/frappe/bench#easy-install
The good thing is that when things are really messed up you can simply go back to a previous snapshot, or take a fresh clone from the original image.