Before starting the server, I need to export ('set' actualy, I'm using Win7) NODE_PATH variable. I tried to do it with this command (not working even in command line):
set NODE_PATH=./ && node server.js
and for package.json:
  "scripts": {
    "start": "set NODE_PATH=. && node server.js"
  },
But it's not working. I got Error: Cannot find module which appears only if NODE_PATH not specified.
So, how this problem could be solved? I need a proper way to export NODE_PATH and run the server with inline command, or a way to specify two separate commands for 'start' script.
 
     
    