nodejs find path of application in your sysytem code example Example: nodejs fs root folder path global.__basedir = __dirname;