This sounds like you haven't actually got Node.js installed on your system. Make sure to download and install it from
Node.js[
^]
When developing code you need to make sure you have the supporting frameworks installed. If you're following a tutorial then you should make sure to pay attention to the "prerequisites" part.