ReferenceError: node is not defined

Delete the .node-red folder /home/bednarz/.node-red (or rename it in case you want it back) and restart node-red. See what it shows in the log then. Post that log here if necessary. Note that it will be different the first time as it should show it creating an empty flows file.