node current directory is home folder instead of js file location code example Example: how to get cwd nodejs process.cwd()