Cannot run js file in node

Hi, am using node for the first time and trying to run a .js file but keep getting Module not found error. Have checked that the Directory is correct and that there are no typos in the file name. The file just has a simple console.log command to test things out.
Have also checked that node is installed correctly with node -v command, and that node has been added to PATH etc…
Any help resolving this issue would be much appreciated.
Mike

Did you resolve the issue? I am now coming across this issue and wouldnt mind a solution