I had the Same Proplem, Just Save your File before Running the Code , Press Ctrl + S and then run the code back in terminal in this form "node code.js" and its going to work inshallah