I'm a nooob at Node so it's likely due to my ignorance that I'm doing something else than what I think I am. Due to the same reason, I haven't seen anything helpful when I googled the issue.
When I'm running my page like this
"start": "app/index.js", ...
start command in your
package.json file should looks something like this -
"start": "node app/index.js". And then to run it you need to execute
node command without parameters just stars node-repl. Read more about npm and
package.json at npmjs.
main parameter in your
package.json is used as the entry point to your package. To run different scripts you should use
The main field is a module ID that is the primary entry point to your program. That is, if your package is named foo, and a user installs it, and then does require("foo"), then your main module's exports object will be returned.