Search code examples
javascriptnode.jswebstorm

Node.js NODE_PATH environment variable


During development I used to WebStorm node_path =. environment variable. I have set up a variable in the launch of the project settings. Now I want to try to run the project on the server, but do not know how to set this variable there. Help solve the problem!


Solution

  • Assuming it's a UNIX or Mac OS X server, use export NODE_PATH= and append the path you want.