Timeline for Why is __dirname not defined in node REPL?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 15, 2020 at 13:10 | comment | added | Pawel | @c24w I tried __dirname, __filename and everything else. No standard solution worked in my case. Here's my project which runs a process as SYSTEM from task scheduler if you're bored github.com/DVLP/Unscheduler. Any standard solution that otherwise works is obviously better than my hack above :) | |
Jun 10, 2020 at 11:21 | comment | added | Tomáš Zato | This is the only answer that at least tries to provide correct solution. | |
Nov 12, 2019 at 10:48 | comment | added | c24w |
If you're not running this through the REPL, you can use __dirname and __filename .
|
|
Apr 17, 2018 at 13:12 | history | answered | Pawel | CC BY-SA 3.0 |