I am new to Node.js, try to learn express to build my first web application. I got stuck on my very first sample code and need some help to get it running. Before I post th
if youre main file is located at /Users/feelexit/WebstormProjects/learnnode/node_modules/index.js
then express needs to be located
at /Users/feelexit/WebstormProjects/learnnode/node_modules/node_modules
as node always looks for modules in ./node_modules
(and its internal folder)
when the path dont start with ./
or /
(more info here)
i think you miss placed youre main file in the module folder