Weird, strange or annoying errors are part of our lives as miserable developers we are. :)
To all of you beginners in the black art, I'll share a quick antidote for this curse.
Most of cases are related to a bad Node installation or maybe related to the modules your [wrongly] are copying and pasting from another project.
So, to solve this issue all you have to do is:
- Remove Node
If in OSX run brew uninstall node
- Delete the dir node_modules
- Install Node again globally
Again, if in OSX run brew install -g node
- Run npm install
- Grab a cup of coffee
- Run npm start and feel a smile growing slowly in your face
Everything's fine now!
You can go back to your happy coding :)