I
I
Iliaity2016-01-30 23:09:40
Node.js
Iliaity, 2016-01-30 23:09:40

What is the correct environment variable to access the global folder?

I'm trying to connect to the root file so that I don't specify an explicit path each time.
Please tell me what I need to do. Maybe change the environment variable?
This method does not help:
1)set NODE_PATH=. node server.js
2) I found this method on the net, it does not help either.
set NODE_PATH="." && nodes server.js

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2016-01-31
@Iliaity

https://gist.github.com/branneman/8048520

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question