// when I could just do this?
19 things I learnt reading the NodeJS docs
David Gilbertson
2.1K52

Hi,

If you run this script from a different directory you may run with a not found.
This is because the process.cwd() will not be the same as the one you expect.

Please check my example here : https://github.com/Zacaria/relative-path and tell me if you agree.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.