ReferenceError: node is not defined

If you wiped your home folder then it should have started with an empty flow. So you should not get the errors. The xaomi node will not even be installed.