Try to run your code with other device if it is working well means the problem is in your version reinstall your node.js with latest version and check the version.After updation run your code it will work.